[MDEV-26876] auth_pam does not work when config file is not named mysql Created: 2021-10-21 Updated: 2021-10-21 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Plugin - pam |
| Affects Version/s: | 10.5.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Marcel | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pam | ||
| Environment: |
SLES15 SP3 |
||
| Description |
|
After updating from 10.2.15 which came with an earlier version of SLES to 10.5.12, our PAM authentication stopped working without any error messages or warnings. Our setup was using a config file called 'mariadb' in /etc/map.d/ and our users were created with "USING 'mariabd'" After a lot of debugging and investigations, it appeared we had to rename the config file to 'mysql' and re-create our users without the "USING 'mariadb'" option. After doing that, it started working again. To further test this, we duplicated the config file, so we had two identical files: mariadb and mysql /etc/pam.d/mariadb & /etc/pam.d/mysql:
(pam_warn.so can be removed, and does not affect the testing at all, it just logs to syslog) We than re-created the user with the USING option, and tried to login.
No password is asked, and no errors logged:
Re-creating the user with mysql as the 'service' name:
Results in a password request and a successful login:
more info:
|