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!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to