Bluehost.com Web Hosting $6.95

pecl/PAM

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. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2008
Kyle B
 
Posts: n/a
Default pecl/PAM

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!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0