Re: Validating A User/Password Pair + Getting Groups On Unix

2005-03-01 Thread Kanenas
On Tue, 1 Mar 2005 09:45:26 -0600, Skip Montanaro <[EMAIL PROTECTED]> wrote: >>> 1) Validate that the password is correct for that user *without >>>actually logging in*. >>> >Kanenas> The 'pwd' module probably won't be able (and won't try) to read >Kanenas> the shadow pass

Re: Validating A User/Password Pair + Getting Groups On Unix

2005-03-01 Thread Skip Montanaro
>> 1) Validate that the password is correct for that user *without >>actually logging in*. >> Kanenas> The 'pwd' module probably won't be able (and won't try) to read Kanenas> the shadow password file, so 'pwd' won't be of use. Note that an spwd module was recently added

Re: Validating A User/Password Pair + Getting Groups On Unix

2005-02-28 Thread Kanenas
On 28 Feb 2005 20:17:58 EST, Tim Daneliuk <[EMAIL PROTECTED]> wrote: [...] >Given a username and a password (plain text): > > 1) Validate that the password is correct for that user *without actually > logging in*. > The naive solution is to use the 'crypt' module to encrypt the alleged password

Re: Validating A User/Password Pair + Getting Groups On Unix

2005-02-28 Thread Kanenas
On 28 Feb 2005 20:17:58 EST, Tim Daneliuk <[EMAIL PROTECTED]> wrote: [...] >Given a username and a password (plain text): > > 1) Validate that the password is correct for that user *without actually > logging in*. > The 'pwd' module probably won't be able (and won't try) to read the shadow pass

Validating A User/Password Pair + Getting Groups On Unix

2005-02-28 Thread Tim Daneliuk
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a password (plain text): 1) Validate that the password is correct for that user *without actually logging in