mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17950 SHOW GRANTS FOR does not work for a user identified with non-existing plugin
Revert the side effect of 7c40996cc8
.
Do not convert password hash to its binary representation when a user
entry is loaded. Do it lazily on the first authenticatation attempt.
As a collateral - force all authentication plugins to follow the
protocol and read_packet at least once before accessing info->username
(username is not available before first client handshake packet is read).
Fix PAM and GSSAPI plugins to behave.
This commit is contained in:
@ -14,12 +14,12 @@ let $replace=Access denied for user '$USER';
|
||||
--echo connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--disable_query_log
|
||||
--error ER_ACCESS_DENIED_ERROR
|
||||
--error ER_PLUGIN_IS_NOT_LOADED
|
||||
connect (fail,localhost,$USER);
|
||||
--enable_query_log
|
||||
|
||||
--replace_result $replace "Access denied for user 'USER'"
|
||||
--error ER_ACCESS_DENIED_ERROR
|
||||
--error ER_PLUGIN_IS_NOT_LOADED
|
||||
change_user $USER;
|
||||
|
||||
eval install plugin unix_socket soname '$AUTH_SOCKET_SO';
|
||||
|
Reference in New Issue
Block a user