[LCP]shadow passwords

Pablo Ortiz Barba portiz at tadecom.com
Sat Aug 25 00:25:04 UTC 2001


Hello David,

I recommend to you that you use PAM  library (Password Authentification
Modules) If you send your email to me I can send documentation to you and an
example so that it you see


Pablo Ortiz.

-----
Original Message -----
From: "David Filion" <filioda at videotron.com>
To: <linuxCprogramming at lists.linux.org.au>
Sent: Friday, August 24, 2001 3:11 PM
Subject: [LCP]shadow passwords


>
>
>
>
> Situation: I downloaded an app and it compiled fine.  Problem is the
password
> authentification is not working.  The app is reading the password from the
> shadow password file with no problem but when compares that value to the
value
> the user enters, the two never match.  The app seems to be using crypt()
to
> encrypt the user entered value.
>
> Q: How do I check to see if a user entered password matches the showdow
file
> password?  I know how to get the user's value from the shadow password
file but
> I haven't found a away to properly encrypt the entered password so I can
compare
> the two.  I've found references to a pw_auth() function but the header
it's
> declared in never gets installed (it's in the no_install list in the
shadow lib
> shouce Makefile).
>
>
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List
>




More information about the linuxCprogramming mailing list