Verifying the configuration – H3C Technologies H3C S12500-X Series Switches User Manual
Page 128

116
[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 can appear three or more times consecutively in a password.
[Sysname] password-control complexity same-character check
# Globally specify that all passwords must each contain at least four character types and at least one
character for each type.
[Sysname] password-control composition type-number 4 type-length 1
# Set the minimum super password length to 21 characters.
[Sysname] password-control super length 21
# 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
# Configure a super password used for switching to user role network-operator as
12345ABGFTweuix@#$%! in plain text.
[Sysname] super password role network-operator simple 12345ABGFTweuix@#$%!
Updating user information. Please wait ... ...
# Create a device management user named test.
[Sysname] local-user test class manage
# Set the service type of the user to Telnet.
[Sysname-luser-manage-test] service-type telnet
# Set the minimum password length to 21 for the local user.
[Sysname-luser-manage-test] password-control length 21
# Specify that the password of the local user must contain at least four character types and at least five
characters for each type.
[Sysname-luser-manage-test] password-control composition type-number 4 type-length 5
# Set the password for the local user to expire after 20 days.
[Sysname-luser-manage-test] password-control aging 20
# Configure the password of the local user in interactive mode.
[Sysname-luser-manage-test] password
Password:
Confirm :
Updating user information. Please wait ... ...
[Sysname-luser-manage-test] quit
221B
Verifying the configuration
# Display the global password control configuration.
- H3C S5560 Series Switches H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S9800 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches