[MDEV-14124] pam_user_map plugin doesn't work on RH7 Created: 2017-10-25 Updated: 2020-03-27 Resolved: 2020-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugin - pam |
| Affects Version/s: | 10.1.28 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Iliya Taushanov | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | pam_user_map | ||
| Environment: |
RedHat 7 |
||
| Issue Links: |
|
||||||||
| Description |
|
We have working MariaDB AD authentication on RH 6 using pam_ldap, where AD accounts are mapped to MariaDB proxy users as per /etc/security/user_map.conf. Since we are now migrating to RH 7, pam_ldap seems to be no longer supported and is replaced by nss-pam-ldapd, so we tried to use pam_sssd and nlscd for the purpose with RedHat support assistance without luck. The issue seems that pam_sssd tries to authenticate the proxied user to AD which apparently fails. Same happens when using nslcd. Does pam_user_map module work with RedHat 7, or does the module need to be updated? RH7, not working config: /etc/sssd/sssd.conf
/etc/security/user_map.conf :
/etc/pam.d/mysql:
/var/log/secure:
Working config on all our 20+ RH 6 MariaDB servers using pam_ldap openldap openldap-clients pam-devel: /etc/pam.d/mysql :
/etc/openldap/ldap.conf
/etc/pam_ldap.conf :
In mysql/MariaDB cli:
|
| Comments |
| Comment by Geoff Montee (Inactive) [ 2020-03-27 ] | |||||
Yes, the pam_user_map PAM module works on RHEL 7. Your problem seems to be shown fairly clearly in the output of /var/log/secure:
You seem to be running into this issue: There are potential two ways to fix this:
OR
|