mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-21928 ALTER USER doesn't remove excess authentication plugins from mysql.global_priv
only use auth1 update (no "auth_or":[]) array, if there was no "auth_or" array in the json yet.
This commit is contained in:
@ -194,3 +194,14 @@ drop user mysqltest1;
|
||||
|
||||
uninstall soname 'auth_ed25519';
|
||||
--remove_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt
|
||||
|
||||
#
|
||||
# MDEV-21928 ALTER USER doesn't remove excess authentication plugins from mysql.global_priv
|
||||
#
|
||||
create user mysqltest1 identified via mysql_native_password as password("good") OR unix_socket;
|
||||
show create user mysqltest1;
|
||||
alter user mysqltest1 identified via mysql_native_password as password("better");
|
||||
show create user mysqltest1;
|
||||
flush privileges;
|
||||
show create user mysqltest1;
|
||||
drop user mysqltest1;
|
||||
|
Reference in New Issue
Block a user