F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Access Control Command Reference-6PW100
252
Syntax
password-control complexity { same-character | user-name } check
undo password-control complexity { same-character | user-name } check
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.
Views
System view
Default command 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.
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
Related commands
display password-control
password-control composition
Use password-control composition to configure the password composition policy.
Use undo password-control composition to restore the default.
Syntax
password-control composition type-number type-number [ type-length type-length ]
undo password-control composition
Default
The global password composition policy is as follows: A password must contain at least one type of
characters from uppercase letters, lowercase letters, digits or special characters (see "password")
, and
each type of characters in the password contains at least one character. The default password
composition policy of a user group is the same as the global policy, and the default password
composition policy of a local user is the same as that of the user group to which the local user belongs.
In FIPS mode, the number of global password composition types must be 4.
Views
System view, user group view, local user view
Default command level
2: System level