RE: [PHP] Re: Can I authenicate user with the accounts in passwd and shadow??
| From: | Sebastien DIDIER | Date: | Tue, 05 Mar 2002 06:11:19 +0000 |
| Subject: | RE: [PHP] Re: Can I authenicate user with the accounts in passwd and shadow?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87233@lists.php.net to get a copy of this message | ||
I suggest mod_auth_pam if you're running PAM on your Unix box,
You could find information about it from
http://pam.sourceforge.net/mod_auth_pam/.
After HTTP authentification (BASIC), the $PHP_AUTH_USER must be set.
I don't know if a PAM module exist for PHP .
Regards,
Sebastien
> -----Message d'origine-----
> De : Paul A. Procacci [mailto:paul79@optonline.net]
> Envoye : mardi 5 mars 2002 00:53
> A : php-general@lists.php.net
> Objet : [PHP] Re: Can I authenicate user with the accounts in passwd and
> shadow??
>
>
> It's easiest to do this using apache, and not php. It's called
> mod_auth_pwcheck. You can find information from
> http://www.chel.com.ru/~anton/projects/mod_auth_pwcheck/. Hope
> this helps.
>
> Paul
>
> Zenith wrote:
>
> >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
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>