Re: PAM Module to lock id

From: Date: Tue, 12 Oct 2010 11:51:33 +0000
Subject: Re: PAM Module to lock id
References: 1 2 3 4 5 6  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7744@lists.php.net to get a copy of this message
How it will lock ??My credentials are stored in a database. Im using pam_mysql to authenticate. *auth required pam_mysql.so user=abc passwd=vishnu host=localhost db=testdb table=Users usercolumn=UserName passwdcolumn=Password crypt=3* If i add below line it doesnt authenticate *password required pam_tally2.so deny=3 unlock_time=60* * * I'm not understanding how pam_tally2 locks as my credentials are in a db.?? Can anyone explain me what happens when incorrect password is entered * * *Thanks!!* * * 2010/10/12 Ferenc Kovacs <info@tyrael.hu> > > > 2010/10/12 Vishnu Gopal Singhal <vishnugopalsinghal.27@gmail.com> > > How is it going to work with pam_tally2??? As this module looks in >> /etc/passwd right ?? >> >> > Hi. > > Please don't top-post on this list. > AFAIK pam_tally2 is pam module, so obviously, it doesn't touch the > /etc/passwd at all. > It just got included in the authentication process, and accept/reject the > authentication based on the "tally": > https://fedorahosted.org/pam-redhat/browser/pam_tally2/README > > So basically you have to set up the pam configuration on your server, > including the pam_mysql the pam_tally2 module. > > <http://www.vdmeulen.net/cgi-bin/man/man2html?pam_tally2+8>After > that, you > have to follow the pecl pam module's installation/configuration guide: > http://svn.php.net/viewvc/pecl/pam/trunk/README?view=markup > and you should good to go. > > Tyrael > -- *Regards,* *Vishnu G Singhal* *If You want to walk fast ..walk alone ,but if you want to walk far walk together - Ratan Tata *

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