Skip to content

Instantly share code, notes, and snippets.

@nirbhayc
Created June 20, 2017 21:11
Show Gist options
  • Save nirbhayc/f04c23c0aecc471a4368c779d4f1a237 to your computer and use it in GitHub Desktop.
Save nirbhayc/f04c23c0aecc471a4368c779d4f1a237 to your computer and use it in GitHub Desktop.
(Blog) cracklib_password_check plugin
MariaDB [test]> INSTALL SONAME 'cracklib_password_check';
Query OK, 0 rows affected (0.05 sec)
MariaDB [test]> SELECT VARIABLE_NAME, DEFAULT_VALUE, VARIABLE_COMMENT FROM INFORMATION_SCHEMA.SYSTEM_VARIABLES WHERE VARIABLE_NAME LIKE 'CRACKLIB_PASSWORD%'\G
*************************** 1. row ***************************
VARIABLE_NAME: CRACKLIB_PASSWORD_CHECK_DICTIONARY
DEFAULT_VALUE: /var/cache/cracklib/cracklib_dict
VARIABLE_COMMENT: Path to a cracklib dictionary
1 row in set (0.00 sec)
MariaDB [test]> SET PASSWORD = PASSWORD('qwerty');
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment