[MXS-2478] Support mysql_clear_password for PAMAuth and PAMBackendAuth Created: 2019-05-10 Updated: 2020-08-25 Resolved: 2020-04-30 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Authenticator, PAM-Authenticator |
| Affects Version/s: | 2.3.6 |
| Fix Version/s: | 2.5.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Esa Korhonen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Epic Link: | Security Improvements | ||||||||
| Sprint: | MXS-SPRINT-104, MXS-SPRINT-105 | ||||||||
| Description |
|
It seems to be a known limitation that MaxScale does not yet support mysql_clear_password for PAMAuth and PAMBackendAuth. The code contains this TODO to add support for it:
The following PAMBackendAuth code seems to explicitly check that the backend server asked MaxScale to use the "dialog" plugin: But I don't think this particular code can even be reached, because if the backend server does not ask MaxScale to use the "dialog" plugin, then it will fail before that here: And throw this error message:
Regardless, I think MaxScale should also support the mysql_clear_password plugin for PAMAuth and PAMBackendAuth. If it does not, then it cannot be used with servers that have pam_use_cleartext_plugin set, which is sometimes needed for compatibility. https://mariadb.com/kb/en/library/authentication-plugin-pam/#pam_use_cleartext_plugin https://mariadb.com/kb/en/library/authentication-plugin-pam/#mysql_clear_password |