Can I authenicate user with the accounts in passwd and shadow??
| From: | Zenith | Date: | Tue, 05 Mar 2002 00:51:14 +0000 |
| Subject: | Can I authenicate user with the accounts in passwd and shadow?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87208@lists.php.net to get a copy of this message | ||
I know that, I can use HTTP, or just normal HTML to prompt for user id
and password.
And check against the plain text, encrypted text or Database for the user
account.
But I wonder if I can check the user account against with the
/etc/passwd, i.e. use the system accounts.
For example, in the system, I am account 'snoopy', and password 'isadog'.
In PHP, I prompt for the account, and if the user enters snoopy:isadog,
can I verify this from the /etc/passwd and /etc/shadow???
Zenith