6.4.3.2 Password Validation Plugin Options and Variables (original) (raw)

6.4.3.2 Password Validation Plugin Options and Variables

This section describes the options, system variables, and status variables that validate_password provides to enable its operation to be configured and monitored.

Password Validation Plugin System Variables

If the validate_password plugin is enabled, it exposes several system variables that enable configuration of password checking:

mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+--------+
| Variable_name                        | Value  |
+--------------------------------------+--------+
| validate_password_check_user_name    | OFF    |
| validate_password_dictionary_file    |        |
| validate_password_length             | 8      |
| validate_password_mixed_case_count   | 1      |
| validate_password_number_count       | 1      |
| validate_password_policy             | MEDIUM |
| validate_password_special_char_count | 1      |
+--------------------------------------+--------+

To change how passwords are checked, you can set these system variables at server startup or at runtime. The following list describes the meaning of each variable.

validate_password_number_count  
+ validate_password_special_char_count  
+ (2 * validate_password_mixed_case_count)  

If validate_password adjusts the value ofvalidate_password_length due to the preceding constraint, it writes a message to the error log.

Password Validation Plugin Status Variables

If the validate_password plugin is enabled, it exposes status variables that provide operational information:

mysql> SHOW STATUS LIKE 'validate_password%';
+-----------------------------------------------+---------------------+
| Variable_name                                 | Value               |
+-----------------------------------------------+---------------------+
| validate_password.dictionary_file_last_parsed | 2019-10-03 08:33:49 |
| validate_password_dictionary_file_words_count | 1902                |
+-----------------------------------------------+---------------------+

The following list describes the meaning of each status variable.