pecl/PAM
| From: | Kyle B | Date: | Wed, 02 Apr 2008 23:16:38 +0000 |
| Subject: | pecl/PAM | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-272469@lists.php.net to get a copy of this message | ||
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!