Réf. : Re: [LCP]shadow passwords

David Filion filioda at videotron.com
Sat Aug 25 00:38:04 UTC 2001





I don't think the software, cups (a printing system), is using PAM in my case.
I'm running slackware which has a slightly different config from other distros.
It's a little more bsd based.  Anyway, it seems to be using the shadow password
routines for password authentification on slackware systems but the
authentification it always fails.  I've just figured out how to do the check in
a test app I wrote and now I'm going to validate how cups is doing it.





"Pablo Ortiz Barba" <portiz at tadecom.com> on 2001-08-24 10:31:06

Veuillez répondre à linuxcprogramming at lists.linux.org.au

Pour :    linuxcprogramming at lists.linux.org.au
cc :   (ccc : David Filion/VSI/GVL)
Objet :   Re: [LCP]shadow passwords


-------------- next part --------------

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
>

_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List






More information about the linuxCprogramming mailing list