mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cracklib_password_check plugin
This commit is contained in:
50
mysql-test/suite/plugins/r/cracklib_password_check.result
Normal file
50
mysql-test/suite/plugins/r/cracklib_password_check.result
Normal file
@@ -0,0 +1,50 @@
|
||||
install soname "cracklib_password_check";
|
||||
select * from information_schema.plugins where plugin_name='cracklib_password_check';
|
||||
PLUGIN_NAME cracklib_password_check
|
||||
PLUGIN_VERSION 1.0
|
||||
PLUGIN_STATUS ACTIVE
|
||||
PLUGIN_TYPE PASSWORD VALIDATION
|
||||
PLUGIN_TYPE_VERSION 1.0
|
||||
PLUGIN_LIBRARY cracklib_password_check.so
|
||||
PLUGIN_LIBRARY_VERSION 1.10
|
||||
PLUGIN_AUTHOR Sergei Golubchik
|
||||
PLUGIN_DESCRIPTION Password validation via CrackLib
|
||||
PLUGIN_LICENSE GPL
|
||||
LOAD_OPTION ON
|
||||
PLUGIN_MATURITY Alpha
|
||||
PLUGIN_AUTH_VERSION 1.0
|
||||
grant select on *.* to foobar identified by 'foobar';
|
||||
ERROR HY000: Your password does not satisfy the current policy requirements
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 cracklib: it is based on your username
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
grant select on *.* to foobar identified by 'raboof';
|
||||
ERROR HY000: Your password does not satisfy the current policy requirements
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 cracklib: it is based on your username
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
grant select on *.* to foo@barbar identified by 'barbar';
|
||||
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 foo@foobar identified by 'foobar';
|
||||
ERROR HY000: Your password does not satisfy the current policy requirements
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 cracklib: it is based on your username
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
grant select on *.* to foobar identified by 'qwerty';
|
||||
ERROR HY000: Your password does not satisfy the current policy requirements
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 cracklib: it is based on a dictionary word
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
grant select on *.* to foobar identified by 'q$%^&*rty';
|
||||
drop user foobar;
|
||||
uninstall plugin cracklib_password_check;
|
||||
create user foo1 identified by 'pwd';
|
||||
drop user foo1;
|
41
mysql-test/suite/plugins/t/cracklib_password_check.test
Normal file
41
mysql-test/suite/plugins/t/cracklib_password_check.test
Normal file
@@ -0,0 +1,41 @@
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (!$CRACKLIB_PASSWORD_CHECK_SO) {
|
||||
skip No CRACKLIB_PASSWORD_CHECK plugin;
|
||||
}
|
||||
|
||||
install soname "cracklib_password_check";
|
||||
|
||||
--vertical_results
|
||||
--replace_result .dll .so
|
||||
select * from information_schema.plugins where plugin_name='cracklib_password_check';
|
||||
--horizontal_results
|
||||
|
||||
--error ER_NOT_VALID_PASSWORD
|
||||
grant select on *.* to foobar identified by 'foobar';
|
||||
show warnings;
|
||||
|
||||
--error ER_NOT_VALID_PASSWORD
|
||||
grant select on *.* to foobar identified by 'raboof';
|
||||
show warnings;
|
||||
|
||||
--error ER_NOT_VALID_PASSWORD
|
||||
grant select on *.* to foo@barbar identified by 'barbar';
|
||||
show warnings;
|
||||
|
||||
--error ER_NOT_VALID_PASSWORD
|
||||
grant select on *.* to foo@foobar identified by 'foobar';
|
||||
show warnings;
|
||||
|
||||
--error ER_NOT_VALID_PASSWORD
|
||||
grant select on *.* to foobar identified by 'qwerty';
|
||||
show warnings;
|
||||
|
||||
grant select on *.* to foobar identified by 'q$%^&*rty';
|
||||
drop user foobar;
|
||||
|
||||
uninstall plugin cracklib_password_check;
|
||||
|
||||
create user foo1 identified by 'pwd';
|
||||
drop user foo1;
|
||||
|
Reference in New Issue
Block a user