
112
•
No character appears consecutively three or more times in a password.
•
A password must contain at least four character types and at least four characters for each type.
Configure a super password control policy for user role
network-operator
to meet the following
requirements:
•
A super password must contain at least 24 characters.
•
A super password must contain at least four character types and at least five characters for each
type.
Configure a password control policy for the local Telnet user
test
to meet the following requirements:
•
The password must contain at least 24 characters.
•
The password must contain at least four character types and at least five characters for each type.
•
The password for the local user expires after 20 days.
Configuration procedure
# Enable the password control feature globally.
<Sysname> system-view
[Sysname] password-control enable
# Prohibit the user from logging in forever after two successive login failures.
[Sysname] password-control login-attempt 2 exceed lock
# Globally set all passwords to expire after 30 days.
[Sysname] password-control aging 30
# Globally set the minimum password length to 16.
[Sysname] password-control length 16
# Set the minimum password update interval to 36 hours.
[Sysname] password-control update-interval 36
# Specify that a user can log in 5 times within 60 days after the password expires.
[Sysname] password-control expired-user-login delay 60 times 5
# Set the maximum account idle time to 30 days.
[Sysname] password-control login idle-time 30
# Refuse any password that contains the username or the reverse of the username.
[Sysname] password-control complexity user-name check
# Specify that no character of the password can be repeated three or more times consecutively.
[Sysname] password-control complexity same-character check
# Specify globally that a password must contain at least four character types and at least four characters
for each type.
[Sysname] password-control composition type-number 4 type-length 4
# Set the minimum super password length to 24.
[Sysname] password-control super length 24
# Specify that a super password must contain at least four character types and at least five characters for
each type.
[Sysname] password-control super composition type-number 4 type-length 5