mariadb/mysql-test/main/grant_plugin.test
2024-10-15 16:00:44 +11:00

26 lines
657 B
Text

--source include/not_embedded.inc
if (!$AUTH_0X0100_SO) {
skip No auth_0x0100 plugin;
}
--echo #
--echo # MDEV-18151: Skipped error returning for GRANT/SET PASSWORD
--echo #
install soname 'auth_0x0100';
CREATE USER foo@localhost IDENTIFIED VIA auth_0x0100;
uninstall plugin auth_0x0100;
--disable_ps_protocol
select Priv from mysql.global_priv where User = "foo" and host="localhost"
into @priv;
--enable_ps_protocol
--error ER_PLUGIN_IS_NOT_LOADED
SET PASSWORD FOR foo@localhost = "1111";
select Priv = @priv as "Nothing changed" from mysql.global_priv where User = "foo" and host="localhost";
DROP USER foo@localhost;
--echo # End of 10.5 tests