190
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
password-control composition
Syntax
password-control composition type-number type-number [ type-length type-length ]
undo password-control composition
View
System view, user group view, local user view
Default level
2: System level
Parameters
type-number type-number: Specifies the minimum number of password composition types, in the range 1
to 4.
type-length type-length: Specifies the minimum number of characters of each password composition type,
in the range 1 to 63.
Description
Use the password-control composition command to configure the password composition policy.
Use the undo password-control composition command to restore the default.
By default, the global password composition policy defines that the minimum number of password
composition types is 1 and the minimum number of characters of a password composition type is also 1.
The default password composition policy for a user group is the same as the global policy, and the
default policy for a local user is the same as that for the user group to which the local user belongs.
The settings in system view have global significance and apply to all user groups, the settings in user
group view apply to all local users in the user group, and the settings in local user view apply to only the
local user.
A password composition policy with a smaller application range has a higher priority. The priority in
descending order is: policy for a local user, policy for a user group, global policy.
Related commands: display password-control, local-user, and user-group.
Examples
# Set the minimum number of password composition types to 3 and the minimum number of characters of
each password composition type to 5 for all passwords.
<Sysname> system-view
[Sysname] password-control composition type-number 3 type-length 5