Not the answer you need?
Register and ask your own question!

PAM doesn't work in xtradb cluster

yassinecyassinec EntrantLegacy User Role Novice
Hello,
I tried to connect xtradb cluster with ldap, so i installed auth_pam plugin and authconfig and i configured the files mysql, nslcd.conf.

cat /etc/pam.d/mysql

auth [success=1 new_authtok_reqd=1 default=ignore] pam_unix.so audit_log audit
auth required pam_ldap.so try_first_pass debug audit_log audit
auth required pam_user_map.so debug audit_log audit
account sufficient pam_unix.so audit debug audit_log audit
account required pam_ldap.so debug audit_log audit

cat /etc/nslcd.conf

filter passwd (uid=*)
uri ldap://172.17.0.7
base ou=people,dc=yassinec,dc=com
ssl no

i tested ldapsearch -x and it works but when i use mysql -u .. to connect with a user on ldap, it gaves this error:

ERROR 1045 (28000): Access denied for user 'yassinec'@'localhost' (using password: YES)

Thank you in advance,
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.