# PAM installation with mysql using LDAP Authentication is not letting to login

**URL:** <https://forums.percona.com/t/pam-installation-with-mysql-using-ldap-authentication-is-not-letting-to-login/4186>\
**Category:** Other MySQL® Questions\
**Created:** [April 27, 2015, 6:13am UTC](https://forums.percona.com/t/pam-installation-with-mysql-using-ldap-authentication-is-not-letting-to-login/4186 "2015-04-27T06:13:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashish10.akg](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@ashish10.akg](https://forums.percona.com/u/ashish10.akg)\
**Post date:** [April 27, 2015, 6:13am UTC](https://forums.percona.com/t/pam-installation-with-mysql-using-ldap-authentication-is-not-letting-to-login/4186/1 "2015-04-27T06:13:31Z")

</div>

I’ve setup PAM 5.6.23 from tar and configured to use LDAP authentication, in some server it is working fine while i’ve some other boxes having [Red Hat Enterprise Linux Server release 6.2 (Santiago) & CentOS release 5.8 (Final)] is not working properly.  
I checked all the permissions and file configuration and everything seems fine.

#cat /etc/pam.d/mysqld  
auth required pam\_ldap.so  
account required pam\_ldap.so

Can you please help to figure out the issue ?  
Please do let me know if any other info is required.

---

<div class="post-metadata">

**Author:** ![jaime](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jaime](https://forums.percona.com/u/jaime)\
**Post date:** [April 27, 2015, 8:09pm UTC](https://forums.percona.com/t/pam-installation-with-mysql-using-ldap-authentication-is-not-letting-to-login/4186/2 "2015-04-27T20:09:16Z")

</div>

Hi,

Can you provide the following:

SELECT \* FROM mysql.user where User=‘’;

cat /var/log/secure

Thanks!

---

<div class="post-metadata">

**Author:** ![BlairPage](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@BlairPage](https://forums.percona.com/u/BlairPage)\
**Post date:** [March 14, 2016, 11:29am UTC](https://forums.percona.com/t/pam-installation-with-mysql-using-ldap-authentication-is-not-letting-to-login/4186/3 "2016-03-14T11:29:50Z")

</div>

Hi Jamie,

For the LDAP configuration, the following article appears to be a step in the right direction.

[url][http://www.itchyninja.com/ldap-authentication-in-mysql/[/url]](http://www.itchyninja.com/ldap-authentication-in-mysql/%5B/url%5D)

Let us know if you run into any difficulties!
