1
0
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:
Sergei Golubchik
2020-04-22 19:59:48 +02:00
parent 2144dc1ff2
commit a58b2b3b2b
3 changed files with 29 additions and 2 deletions

View File

@ -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;