1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

test for two password validation plugins

when many plugins are active, all must approve the password
This commit is contained in:
Sergei Golubchik
2014-11-25 22:22:55 +01:00
parent 78cb6e34ad
commit 0c7d773fca
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,21 @@
install soname "simple_password_check";
grant select on *.* to Fff_fff1 identified by '1fff_ffF';
drop user Fff_fff1;
install soname "cracklib_password_check";
grant select on *.* to foobar identified by 'q$%^&*R1234ty';
drop user foobar;
grant select on *.* to Fff_fff1 identified by '1fff_ffF';
ERROR HY000: Your password does not satisfy the current policy requirements
show warnings;
Level Code Message
Warning 1819 cracklib: it does not contain enough DIFFERENT characters
Error 1819 Your password does not satisfy the current policy requirements
grant select on *.* to foobar identified by 'q-%^&*rty';
ERROR HY000: Your password does not satisfy the current policy requirements
show warnings;
Level Code Message
Error 1819 Your password does not satisfy the current policy requirements
uninstall plugin simple_password_check;
grant select on *.* to foobar identified by 'q-%^&*rty';
drop user foobar;
uninstall plugin cracklib_password_check;