Skip to content

Commit

Permalink
Fixed plugins.cracklib_password_check failure
Browse files Browse the repository at this point in the history
In RHEL7/RHEL7.1 libcrack behavior seem to have been modified so that
"foobar" password is considered bad (due to descending "ba") earlier than
expected. For details google for cracklib-2.9.0-simplistic.patch.

Adjusted affected passwords not to have descending and ascending sequences.
  • Loading branch information
Sergey Vojtovich committed Mar 18, 2016
1 parent 1c84836 commit 546e913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mysql-test/suite/plugins/r/cracklib_password_check.result
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ PLUGIN_LICENSE GPL
LOAD_OPTION ON
PLUGIN_MATURITY Alpha
PLUGIN_AUTH_VERSION 1.0
grant select on *.* to foobar identified by 'foobar';
grant select on *.* to foocar identified by 'foocar';
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';
grant select on *.* to foocar identified by 'racoof';
ERROR HY000: Your password does not satisfy the current policy requirements
show warnings;
Level Code Message
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/plugins/t/cracklib_password_check.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ select * from information_schema.plugins where plugin_name='cracklib_password_ch
--horizontal_results

--error ER_NOT_VALID_PASSWORD
grant select on *.* to foobar identified by 'foobar';
grant select on *.* to foocar identified by 'foocar';
show warnings;

--error ER_NOT_VALID_PASSWORD
grant select on *.* to foobar identified by 'raboof';
grant select on *.* to foocar identified by 'racoof';
show warnings;

--error ER_NOT_VALID_PASSWORD
Expand Down

0 comments on commit 546e913

Please sign in to comment.