# Help with auth\_pam plugin

**URL:** <https://forums.percona.com/t/help-with-auth-pam-plugin/4050>\
**Category:** Other MySQL® Questions\
**Created:** [February 12, 2015, 2:52am UTC](https://forums.percona.com/t/help-with-auth-pam-plugin/4050 "2015-02-12T02:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![migueltubia](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/migueltubia/32/1055_2.png) [@migueltubia](https://forums.percona.com/u/migueltubia)\
**Post date:** [February 12, 2015, 2:52am UTC](https://forums.percona.com/t/help-with-auth-pam-plugin/4050/1 "2015-02-12T02:52:08Z")

</div>

Hi,

i need some help to resolve one problem with Percona’s auth\_pam plugin.

I have a CentOS with mysql server 5.6 (i have also test 5.5).  
I have downloaded, compiled and installed auth\_pam. All of these steps ok. I have configure

```auto
/etc/pam.d/mysqld

```

with:

```auto
auth required pam_sss.so
account required pam_sss.so

```

After this, i hava created one user as specified at the documentation:

```auto
CREATE USER 'miguel.tubia'&#64;'localhost' IDENTIFIED WITH auth_pam;

```

Of course, the password field is empty. I want to auth using sssd, which is configured to query our LDAP server.

On one Debian box, it has worked perfect.

Now, on this CentOS box, it doesn’t work. When I’m going to login with the new user created and my ldap password, I get a login failed error.  
Anyway, if i login with an empty password, I can login ok. I think that mysql is not using the pam plugin…

I don’t know how to debug it. I don’t get any error, i don’t see any log with useful information.  
Any help is welcome…

Thanks.  
Best regards,  
M.

---

<div class="post-metadata">

**Author:** ![niljoshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/niljoshi/32/16889_2.png) [@niljoshi](https://forums.percona.com/u/niljoshi)\
**Post date:** [March 2, 2015, 12:58am UTC](https://forums.percona.com/t/help-with-auth-pam-plugin/4050/2 "2015-03-02T00:58:57Z")

</div>

Hi,

I would suggest you to read this blog post which describes how to configure Percona PAM plugin.  
[url][http://www.percona.com/blog/2013/08/14/getting-percona-pam-to-work-with-percona-server-its-client-apps/[/url]](http://www.percona.com/blog/2013/08/14/getting-percona-pam-to-work-with-percona-server-its-client-apps/%5B/url%5D)

Please check all required steps if you are missing anything and let us know if you still face the issue.
