HP 6125G Command Reference Manual page 166

Security command reference
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

unlock: Allows a user who fails to log in after the specified number of attempts to continue trying to log
in.
Description
Use password-control login-attempt to specify the maximum number of consecutive failed login attempts
and the action to be taken when a user fails to log in after the specified number of attempts.
Use undo password-control login-attempt to restore the default.
By default, the maximum number of consecutive failed login attempts is three and a user failing to log in
after the specified number of attempts must wait for one minute before trying again.
If prohibited permanently, a user can log in only after you remove the user from the blacklist.
If prohibited temporarily, a user can log in again after the lock time elapses or an administrator removes
the user from the blacklist.
If not prohibited to log in, a user is removed from the blacklist as long as the user logs in successfully or
after the blacklist aging time (one minute) elapses.
Related commands: display password-control, display password-control blacklist, and reset
password-control blacklist.
Examples
# Set the maximum number of login attempts to four and permanently prohibit a user failing to log in
after four attempts from logging in.
<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 blacklist, with its status changed from
unlock to lock:
[Sysname] display password-control blacklist
Username: test
IP: 192.168.44.1
Total 1 blacklist item(s) matched.
The user can no longer log in.
# Set the maximum number of login attempts to two and prohibit a user failing to log in after two attempts
from logging in within three minutes.
<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 blacklist, with its status changed from
unlock to lock:
[Sysname] display password-control blacklist
Username: test
IP: 192.168.44.1
Total 1 blacklist item(s) matched.
After three minutes, the user is removed from the blacklist and can log in again.
Login failed times: 4
Login failed times: 2
157
Lock flag: lock
Lock flag: lock

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents