R211x-HP Flexfabric 11900 Security Command Reference

Table Of Contents
152
mdc-admin
Parameters
login-times: Specifies the maximum number of consecutive failed login attempts. The value range is 2 to
10.
exceed: Specifies the action to be taken when a user fails to log in after the specified number of attempts.
lock: Permanently prohibits a user who fails to log in after the specified number of attempts from logging
in.
lock-time time: Forces a user who fails to log in after the specified number of attempts to wait for a period
of time before trying again. The time argument is in the range of 1 to 360 minutes.
unlock: Allows a user who fails to log in after the specified number of attempts to continue trying to log
in.
Usage guidelines
The login-attempt policy depends on the view:
The policy in system view has global significance and applies to all user groups.
The policy in user group view applies to all local users in the user group.
The policy in local user view applies only to the local user.
A login-attempt policy with a smaller application scope has higher priority. The system prefers to use the
login-attempt policy in local user view for a local user.
If no policy is configured for the local user, the system uses the policy for the user group to which the
local user belongs.
If no policy is configured for the user group, the system uses the global policy.
If an FTP or virtual terminal line (VTY) user fails authentication, the system adds the user to a password
control blacklist. If a user fails to provide the correct password after the specified number of consecutive
attempts, the system takes one of the following actions:
If prohibited permanently, the user can log in only after you remove the username from the
password control blacklist by using the reset password-control blacklist command.
If prohibited temporarily, the user can log in again after the lock time elapses or after you remove
the username from the password control blacklist by using the reset password-control blacklist
command.
If not prohibited from logging in, the username is removed from the password control blacklist when
the user logs in to the system successfully.
The password-control login-attempt command takes effect immediately after executed, and can affect
the users already in the password control blacklist.
Examples
# Set the maximum number of login attempts to 4 and permanently prohibit a user from logging in if the
user fails to log in after four attempts.
<Sysname> system-view
[Sysname] password-control login-attempt 4 exceed lock
Later, if a user fails to log in after four attempts, you can find it in the password control blacklist, with its
status changed from unlock to lock:
[Sysname] display password-control blacklist
Username: test