[MDEV-22459] pam v2 should log an error if auth_pam_tool exec fails Created: 2020-05-04 Updated: 2020-08-25 Resolved: 2020-05-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugin - pam |
| Affects Version/s: | 10.4.12, 10.5.2 |
| Fix Version/s: | 10.5.4, 10.4.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
Version 2 of the pam authentication plugin executes a tool called auth_pam_tool. This happens here:
https://github.com/MariaDB/server/blob/mariadb-10.4.12/plugin/auth_pam/auth_pam.c#L85 Currently, if the execution of this tool fails, then nothing is logged. If you are using a debug build of the plugin and if pam_debug is enabled, then you do get an error message, but it is still not optimal. I think we need to make the following changes:
|