password-control complexity
Syntax
password-control complexity { same-character | user-name } check
undo password-control complexity { same-character | user-name } check
View
System view
Default level
2: System level
Parameters
same-character: Refuses a password that contains any character repeated consecutively three or more times.
user-name: Refuses a password that contains the username or the reverse of the username.
Description
Use password-control complexity to configure the password complexity checking policy. Weak passwords will be refused.
Use undo password-control complexity check to remove a password complexity checking item.
By default, no user password complexity checking is performed, and a password can contain the username, the reverse of the username, or a character repeated three or more times consecutively.
Related commands: display password-control.
Examples
# Configure the password complexity checking policy, refusing any password that contains the username or the reverse of the username.
<Sysname> system-view [Sysname] password-control complexity user-name check