This is a discussion on pecl/PAM within the PHP General forums, part of the PHP Programming Forums category; Hi, I've recently installed the pecl/PAM module, however, it appears that it is not functioning as it should. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I've recently installed the pecl/PAM module, however, it appears that it is not functioning as it should. It's returning a value of 1, even if the username and password are completely incorrect. This is the file I'm using to test: development# cat test.php <?php if(pam_auth('sfdfgfdu', '0blah0') == 1) { echo "YAY!"; } else { echo "BOO!"; } ?> I've created the /etc/pam.d/php file using pam_unix.so as the library, and added pam.servicename = "php"; to the top of my php.ini file. I'm on FreeBSD 7.0-RELEASE, PHP 5.2.5, and Apache 2.2. Any assistance would be appreciated. Thanks! |