mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02: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:
parent
3742f6f9aa
commit
c94ec9fc67
13 changed files with 186 additions and 145 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue