[MDEV-32665] Faking non-existing user during authentication throws confusing "unknown authentication plugin" Created: 2023-11-02 Updated: 2023-12-04 Resolved: 2023-12-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.11 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
See e.g https://stackoverflow.com/questions/76520710/authentication-plugin-auth-gssapi-client-cannot-be-loaded or https://stackoverflow.com/questions/77266689/sqlx-unknown-authentication-plugin-auth-gssapi-client-mariadb Since 10.11 ( GSSAPI is not supported by non-MariaDB Connectors, with one notable exception of community .NET connector (https://mysqlconnector.net ) . This is not a big deal, as we do not expect 3rd party application to use "root" user in applications, and even if they do, with correct password it would work. However trying to connect if the user does not exist , and MariaDB "faking" logic copies a root user, that runs authentication sequence, and ends up with "auth_gssapi is not supported". This
Perhaps, existing logic should be changed, so predefined users e.g "root" are not used to fake a non-existing user. |
| Comments |
| Comment by Sergei Golubchik [ 2023-12-04 ] |
|
I don't understand, if root will never be used for nonexistent users, then asking for gssapi plugin will be a dead giveaway that root user actually does exist and wasn't renamed, for example, like many do for a bit of extra security. Also, the first stackoverflow link is, exactly about the root user, so faking is not even an issue here. The issue is that in the default installation the default user uses authentication plugin that many connectors don't support. I don't know what can be done here, short of reverting |
| Comment by Vladislav Vaintroub [ 2023-12-04 ] |
|
I assume it will be fixed this or that way there is some new default authentication plugin like described in MDEV-32618, and once users will start complaining. |