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:
@ -1,13 +1,8 @@
|
||||
update mysql.global_priv set priv=json_insert(priv, '$.plugin', 'unix_socket');
|
||||
flush privileges;
|
||||
Warnings:
|
||||
Warning 1524 Plugin 'unix_socket' is not loaded
|
||||
Warning 1524 Plugin 'unix_socket' is not loaded
|
||||
Warning 1524 Plugin 'unix_socket' is not loaded
|
||||
Warning 1524 Plugin 'unix_socket' is not loaded
|
||||
connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
ERROR 28000: Access denied for user 'USER'@'localhost' (using password: NO)
|
||||
ERROR 28000: Access denied for user 'USER'@'localhost' (using password: NO)
|
||||
ERROR HY000: Plugin 'unix_socket' is not loaded
|
||||
ERROR HY000: Plugin 'unix_socket' is not loaded
|
||||
install plugin unix_socket soname 'auth_socket.so';
|
||||
flush privileges;
|
||||
connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
|
Reference in New Issue
Block a user