mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-9804 Implement a caching_sha2_password plugin
but without caching
This commit is contained in:
21
plugin/auth_mysql_sha2/mysql-test/mysql_sha2/init.inc
Normal file
21
plugin/auth_mysql_sha2/mysql-test/mysql_sha2/init.inc
Normal file
@@ -0,0 +1,21 @@
|
||||
source include/not_embedded.inc;
|
||||
|
||||
call mtr.add_suppression('failed to read private_key.pem: 2 "No such file or directory"');
|
||||
|
||||
if (`select count(*) = 0 from information_schema.plugins where plugin_name = 'caching_sha2_password'`)
|
||||
{
|
||||
--skip Needs caching_sha2_password plugin
|
||||
}
|
||||
|
||||
show status like 'caching_sha2_password%';
|
||||
|
||||
create user test1@'%' identified via caching_sha2_password using PASSWORD('pwd');
|
||||
create user test2@'%' identified via caching_sha2_password;
|
||||
show grants for test2@'%';
|
||||
|
||||
create procedure checkme() sql security invoker
|
||||
select user(), current_user(), variable_value > '' as 'have_ssl'
|
||||
from information_schema.session_status
|
||||
where variable_name='ssl_cipher';
|
||||
|
||||
grant execute on test.* to test1@'%', test2@'%';
|
Reference in New Issue
Block a user