Re: PHP5.0.3 and pam authentication

From: Date: Wed, 09 Mar 2005 22:45:11 +0000
Subject: Re: PHP5.0.3 and pam authentication
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210386@lists.php.net to get a copy of this message
> I'm trying to use pam_auth for a script. It loads into php but it's not > authenticating the users. I'm using the correct password and username. > This is a example of how I'm using the function: > > pam_auth($_POST[uname], $_POST[passwd], &$error) > > Any ideas? Thanks in advance For starters, you should quote uname and passwd. It's clear you also have error_reporting too low on your development server, or PHP would complain about that. You should not have the & in there. Finally, according to the pam_auth FAQ, if you using a passwd or shadow file, your user has to have read permission to read that file. Seems like the most likely reason for failure, based on what little info you give us... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#210386) next »