Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I'm trying to create a script which will reset user passwords or ID's within our TAM environment. 1) The command: pdadmin -a sec_master -p password file only takes one ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Posts
    4

    Scripting


    Hello,

    I'm trying to create a script which will reset user passwords or ID's within our TAM environment.

    1) The command: pdadmin -a sec_master -p password file

    only takes one option which is a file. Within that file are the commands to reset a user ID but I want variables in that file so that I do not have to edit that file each time to change the ID required to be reset.

    Example:

    File 1 Called "file1" contains:

    pdadmin -a sec_master -p password file2

    File 2 called "file2" contains:

    user modify $1 password passw0rd
    user modify $1 password-valid yes

    Where $1 would be whatever Id needed to be reset.

    So when I run "file1" it logs into PDADMIN and executes the contents of "file2"

    How can I replace the $1 value within file2 when running file1?

  2. #2
    Just Joined!
    Join Date
    Apr 2003
    Location
    Australia & England
    Posts
    75
    Hi,
    I've been reading this message a couple of times now to work out what you're after.
    I guess I don't understand if you can do remote execution.
    If you had the second file on the remote machine, then it is easy, but I don't think you do?

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Posts
    4
    Hello,
    I am on the Linux server running PDADMIN. Do you have any suggestions? Why would it be easy if the second file was somewhere else?

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •