206
unlock
: Allows a user who fails to log in after the specified number of attempts to continue trying to
log in.
Usage guidelines
If prohibited permanently, a user can log in only after you remove the user from the password control
blacklist.
If prohibited temporarily, a user can log in again after the lock time elapses or an administrator
removes the user from the password control blacklist.
If not prohibited to log in, a user is removed from the password control blacklist as long as the user
logs in successfully or after the blacklist aging time (1 minute) elapses.
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 tries to log in but fails four times, you can find it in the password control blacklist with
its status changed from
unlock
to
lock
:
[Sysname] display password-control blacklist
Username: test
IP: 192.168.44.1 Login failed times: 4 Lock flag: lock
Total 1 blacklist item(s) matched. 1 listed.
The user can no longer log in.
# Set the maximum number of login attempts to 2 and prohibit a user from logging in within 3 minutes
if the user fails to log in after two attempts.
<Sysname> system-view
[Sysname] password-control login-attempt 2 exceed lock-time 3
Later, if a user tries to log in but fails two times, you can find it in the password control blacklist with its
status changed from
unlock
to
lock
:
[Sysname] display password-control blacklist
Username: test
IP: 192.168.44.1 Login failed times: 2 Lock flag: lock
Total 1 blacklist item(s) matched. 1 listed.
After 3 minutes, the user is removed from the password control blacklist and can log in again.
Related commands
•
display
password-control
•
display password-control blacklist
•
reset password-control blacklist
password-control password update interval
Use
password-control password update interval
to set the minimum password update interval,
that is, the minimum interval at which users can change their passwords.
Use
undo password-control password update interval
to restore the default.
Syntax
password-control password update interval
interval