How to get encrypted user password
How to get encrypted user password
- Subject: How to get encrypted user password
- From: Roger Pau Monné <email@hidden>
- Date: Wed, 30 Dec 2009 03:21:00 +0100
Hello,
I'm implementing a very simple FTP client, and to do the login I would like to check against system users instead of using my own database, so that I can give the proper permissions to the newly created process that I've spawned with fork. What's the best way for doing this in C?
I've read about the getpwnam function, that returns a struct passwd that has the field pw_passwd to compare against (using the crypt function), but this field only contains asterisks in Mac OS X and an x in Linux. Is there any common way to get the encrypted password of a user across POSIX systems?
Thanks, Roger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden