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
>> 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
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
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
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