Opened 13 years ago

Last modified 11 years ago

#1203 new enhancement

IZ262: Read passwords from a file

Reported by: pollinger Owned by:
Priority: normal Milestone:
Component: testsuite Version: current
Severity: Keywords: framework


[Imported from gridengine issuezilla]

        Issue #:      262             Platform:     All           Reporter: pollinger (pollinger)
       Component:     testsuite          OS:        All
     Subcomponent:    framework       Version:      current          CC:    None defined
        Status:       RESOLVED        Priority:     P3
      Resolution:     FIXED          Issue type:    ENHANCEMENT
                                  Target milestone: milestone 1
      Assigned to:    rhierlmeier (rhierlmeier)
      QA Contact:     joga
       * Summary:     Read passwords from a file
   Status whiteboard:

     Issue 262 blocks:
   Votes for issue 262:     Vote for this issue

   Opened: Thu Nov 13 04:45:00 -0700 2008 

When using the testsuite with a Windows host (especially when writing new tests
or debugging old tests) it's very annyoing you have enter the passwords of
yourself, root, sgetest1 and sgetest2 every 5 minutes (because you always have
to stop the testsuite to get out of tests that have gone mad). It would be
better if the passwords could be stored to an (encrypted?) file and read from
the testsuite from there.

Perhaps it will then still be necessary to enter a master password, this would
be ok.

   ------- Additional comments from rhierlmeier Thu Dec 11 04:03:27 -0700 2008 -------
To allow a complete non interactive run it testsuite would be nice if testsuite
supports something like a wallet application.

This application has access to an encrypted file with all necessary password. At
startup of the wallet the user has to type master password which is necessary
for encrypting the file. The wallet must started before TS needs the first password.

The wallet opens a named pipe (file permissions are 600). Testsuite writes
password request into the pipe, e.g.

   need password for user A on host B and return result over /tmp/res.$$

Testsuite itself reads the password of a named pipe (/tmp/res.$$) and the wallet
writes the password into this second named pipe.

   ------- Additional comments from rhierlmeier Mon Jan 26 07:49:53 -0700 2009 -------

   ------- Additional comments from rhierlmeier Mon Jan 26 07:50:12 -0700 2009 -------

   ------- Additional comments from rhierlmeier Mon Jan 26 07:53:11 -0700 2009 -------
I have added the command line option --get_pw_command <cmd>. If this option is
specified testsuite will execute <cmd> to get the password. <cmd> gets as first
parameter the name of the user who's password is needed. The script must print
the password to stdout and return with exit code 0.

Change History (0)

Note: See TracTickets for help on using tickets.