1
0
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:
Sergei Golubchik
2025-05-04 19:13:43 +02:00
parent b57bf6f7b1
commit 63583b0824
30 changed files with 1080 additions and 4 deletions

View 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@'%';