Configuration Guide Configuring Password Policy
13.3.1.6 Configuration Examples
The following configuration example describes configuration related to a password security policy.
Configuring Password Security Check on the Device
Assume that the following password security requirements arise in a network environment:
6. The minimum length of passwords is 8 characters;
7. The password life cycle is 90 days;
8. Passwords are stored and transmitted in cipher text format;
9. The number of no-repeat times of password history records is 3;
10. Passwords shall not be the same as user names, and shall not contain simple characters or digits only.
Set the minimum length of passwords to 8.
Set the password life cycle to 90 days.
Enable the storage of encrypted passwords.
Set the no-repeat times of password history records to 3.
Enable the strong password detection function.
Ruijie# configure terminal
Ruijie(config)# password policy min-size 8
Ruijie(config)# password policy life-cycle 90
Ruijie(config)# service password-encryption
Ruijie(config)# password policy no-repeat-times 3
Ruijie(config)# password policy strong
When you create a user and the corresponding password after configuring the password security policy, the
system will perform relevant detection according to the password security policy.
Run the show password policy command to display user-configured password security policy
information.
Ruijie# show password policy
Global password policy configurations:
Password encryption: Enabled
Password strong-check: Enabled
Password min-size: Enabled (8 characters)
Password life-cycle: Enabled (90 days)