You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.0 KiB

  1. install soname "cracklib_password_check";
  2. select * from information_schema.plugins where plugin_name='cracklib_password_check';
  3. PLUGIN_NAME cracklib_password_check
  4. PLUGIN_VERSION 1.0
  5. PLUGIN_STATUS ACTIVE
  6. PLUGIN_TYPE PASSWORD VALIDATION
  7. PLUGIN_TYPE_VERSION 1.0
  8. PLUGIN_LIBRARY cracklib_password_check.so
  9. PLUGIN_LIBRARY_VERSION 1.11
  10. PLUGIN_AUTHOR Sergei Golubchik
  11. PLUGIN_DESCRIPTION Password validation via CrackLib
  12. PLUGIN_LICENSE GPL
  13. LOAD_OPTION ON
  14. PLUGIN_MATURITY Stable
  15. PLUGIN_AUTH_VERSION 1.0
  16. grant select on *.* to foocar identified by 'foocar';
  17. ERROR HY000: Your password does not satisfy the current policy requirements
  18. show warnings;
  19. Level Code Message
  20. Warning 1819 cracklib: it is based on your username
  21. Error 1819 Your password does not satisfy the current policy requirements
  22. grant select on *.* to foocar identified by 'racoof';
  23. ERROR HY000: Your password does not satisfy the current policy requirements
  24. show warnings;
  25. Level Code Message
  26. Warning 1819 cracklib: it is based on your username
  27. Error 1819 Your password does not satisfy the current policy requirements
  28. grant select on *.* to foo@barbar identified by 'barbar';
  29. ERROR HY000: Your password does not satisfy the current policy requirements
  30. show warnings;
  31. Level Code Message
  32. Warning 1819 cracklib: it does not contain enough DIFFERENT characters
  33. Error 1819 Your password does not satisfy the current policy requirements
  34. grant select on *.* to foobar identified by 'qwerty';
  35. ERROR HY000: Your password does not satisfy the current policy requirements
  36. show warnings;
  37. Level Code Message
  38. Warning 1819 cracklib: it is based on a dictionary word
  39. Error 1819 Your password does not satisfy the current policy requirements
  40. grant select on *.* to foobar identified by 'q$%^&*rty';
  41. drop user foobar;
  42. #
  43. # MDEV-9851: CREATE USER w/o IDENTIFIED BY clause causes crash
  44. # when using cracklib plugin
  45. #
  46. create user 'newuser'@'localhost';
  47. ERROR HY000: Your password does not satisfy the current policy requirements
  48. uninstall plugin cracklib_password_check;
  49. create user foo1 identified by 'pwd';
  50. drop user foo1;