Help in Getting and installing PECL
| From: | Vishnu Gopal Singhal | Date: | Wed, 06 Oct 2010 09:31:21 +0000 |
| Subject: | Help in Getting and installing PECL | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7716@lists.php.net to get a copy of this message | ||
Hello All,
How can i lock an attempt if incorrect password is entered
three times. As the username & password are stored in database im not sure
pam_tally2 will not work.
Basically my username/password in the talbe "Users" is admin/admin.
Here is my /etc/pam.d/php file
auth optional pam_mysql.so user=vishnu passwd=girish host=localhost db=test
table=Users usercolumn=UserName passwdcolumn=Password crypt=3
account required pam_mysql.so user=vishnu passwd=girish host=localhost
db=test table=Users usercolumn=UserName passwdcolumn=Password crypt=3
session required pam_mysql.so user=vishnu passwd=girish host=localhost
db=test table=Users usercolumn=UserName passwdcolumn=Password crypt=3
*auth required pam_tally2.so deny=3 even_deny_root
unlock_time=1200*
But if i check the log /var/log/secure then it displays
*Oct 6 14:49:06 <authpriv.err> localhost httpd[17782]: pam_tally2(php:auth):
pam_get_uid; no such user*
Is there any other module to lock the account whose credentials are stored
in mysql db..
Thanks a lot for your help.
Thanks,
Vishnu
On 28 September 2010 20:24, Grant Croker <grant.croker@ingres.com> wrote:
> On 28/09/10 15:28, Vishnu Gopal Singhal wrote:
>
>> Hello Team,
>>
>> Can someone provide me pointer to get PECL and installing on my Redhat
>> linux. I want to install PAM . So I need PECL.
>>
>> *[root@localhost ~]# pecl install pam*
>> *-bash: pecl: command not found*
>>
>> Version of OS :
>>
>> [root@localhost ~]# uname -a
>> Linux localhost.localdomain 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10
>> EDT 20
>> 10 i686 i686 i386 GNU/Linux
>>
>> Thanks!!
>>
>> If I'm not mistaken pecl comes in php-pear on Redhat/Fedora. You might
> also need to install php-devel to get the PHP tools needed to compile the
> extensions from PECL.
>
> regards
>
> grant
>
> --
> Grant Croker, Ingres Corp
> Ingres PHP and Ruby maintainer
> http://planetingres.org
> "Mark Knopfler has an extraordinary ability to make a Schecter Custom
> Stratocaster hoot and sing like angels on a Saturday night, exhausted
> from being good all week and needing a stiff beer." -Adams' Description
> of the guitar on the Dire Straits track "Tunnel of Love"
>
>
--
*Regards,*
*Vishnu G Singhal*
*If You want to walk fast ..walk alone ,but if you want to walk far walk
together - Ratan Tata
*
--
*Regards,*
*Vishnu G Singhal*
*If You want to walk fast ..walk alone ,but if you want to walk far walk
together - Ratan Tata
*
--
*Regards,*
*Vishnu G Singhal*
*If You want to walk fast ..walk alone ,but if you want to walk far walk
together - Ratan Tata
*