Re: Need Urgent help in understanding Pam_tally module

From: Date: Thu, 14 Oct 2010 09:34:03 +0000
Subject: Re: Need Urgent help in understanding Pam_tally module
References: 1  Groups: php.pecl.dev php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7760@lists.php.net to get a copy of this message
On Thu, Oct 14, 2010 at 11:07 AM, Vishnu Gopal Singhal < vishnugopalsinghal.27@gmail.com> wrote: > Hello Team, > > Im able to authenticate using pam_mysql module. I want to use pam_tally for > locking n unlocking id if incorrect password is entered. But when i have > following lines [in Bold] added in the /etc/pam.d/php > > *auth required pam_tally.so onerr=fail file=/var/log/faillog* > auth required pam_mysql.so user=test passwd=test host=localhost db=test > table=Users usercolumn=UserName passwdcolumn=Password crypt=3 > *auth optional pam_tally2.so deny=3 unlock_time=60 file=/var/log/tallylog* > > Error found in /var/log/secure when added above lines in bold > *Oct 14 14:28:36 <authpriv.err> localhost httpd[5423]: pam_tally(php:auth): > pam_get_uid; no such user* > *Oct 14 14:28:36 <authpriv.err> localhost httpd[5423]: > pam_tally2(php:auth): > pam_get_uid; no such user* > * > * > How would I overcome above error ? Moreover faillog n tallylog are not > updating. Im not sure how to see faillog file . It has all junk characters. > > When I type *faillog -m 5 *I dont see anything in the terminal. > > [root@localhost log]# faillog -m 5 > [root@localhost log]# ls -l tallylog > -rw------- 1 root root 0* *Aug 3 17:10 tallylog > > There is no issue with the permissions as other files such as messages & > secure are having the same [600]. > > > Please help me to overcome above error which is bold red and in > understanding how can I manage session using httpd & PAM. Im using php. > > > Thanks in advance!! > Thanks!! > > -- > > *Regards,* > > *Vishnu G Singhal* > > *If You want to walk fast ..walk alone ,but if you want to walk far walk > together - Ratan Tata > * > your problem seems more likely with the PAM configuration, than with the php, so I think it would be better to RTFM, or ask help on some general linux, or PAM specific mailing list. Tyrael

« previous php.pecl.dev (#7760) next »