Table Of Contents
Prerequisites for Login Password Retry Lockout
Restrictions for Login Password Retry Lockout
Information About Login Password Retry Lockout
Locking Out a Local AAA User Account
How to Configure Login Password Retry Lockout
Configuring Login Password Retry Lockout
Clearing the Unsuccessful Attempts of a User
Monitoring and Maintaining Login Password Retry Lockout
Configuration Examples for Login Password Retry Lockout
Login Password Retry Lockout: Example
show aaa local user lockout Command: Example
aaa local authentication attempts max-fail
clear aaa local user fail-attempts
Login Password Retry Lockout
The Login Password Retry Lockout feature allows system administrators to lock out a local authentication, authorization, and accounting (AAA) user account after a configured number of unsuccessful attempts by the user to log in.
Feature History for Login Password Retry Lockout
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for Login Password Retry Lockout
•
Restrictions for Login Password Retry Lockout
•
Information About Login Password Retry Lockout
•
How to Configure Login Password Retry Lockout
•
Configuration Examples for Login Password Retry Lockout
Prerequisites for Login Password Retry Lockout
•
You must be running a Cisco IOS image that contains the AAA component.
Restrictions for Login Password Retry Lockout
•
Authorized users can lock themselves out because there is no distinction between an attacker who is guessing passwords and an authorized user who is entering the password incorrectly multiple times.
•
A denial of service (DoS) attack is possible, that is, an authorized user could be locked out by an attacker if the username of the authorized user is known to the attacker.
Information About Login Password Retry Lockout
To configure the Login Password Retry Lockout feature, you should understand the following concept:
•
Locking Out a Local AAA User Account
Locking Out a Local AAA User Account
The Login Password Retry Lockout feature allows system administrators to lock out a local AAA user account after a configured number of unsuccessful attempts by the user to log in using the username that corresponds to the AAA user account. A locked-out user cannot successfully log in again until the user account is unlocked by the administrator.
A system message is generated when a user is either locked by the system or unlocked by the system administrator. The following is an example of such a system message:
%AAA-5-USER_LOCKED: User user1 locked out on authentication failure.
The system administrator cannot be locked out.
Note
The system administrator is a special user who has been configured using the maximum privilege level (root privilege—level 15). A user who has been configured using a lesser privilege level can change the privilege level using the enable command. If the user can change to the root privilege (level 15), that user is able to act as a system administrator.
This feature is applicable to any login authentication method, such as ASCII, Challenge Handshake Authentication Protocol (CHAP), and Password Authentication Protocol (PAP).
Note
No messages are displayed to users after authentication failures that are due to the locked status (that is, there is no distinction between a normal authentication failure and an authentication failure due to the locked status of the user.
How to Configure Login Password Retry Lockout
This section contains the following procedures:
•
Configuring Login Password Retry Lockout
•
Clearing the Unsuccessful Attempts of a User
•
Monitoring and Maintaining Login Password Retry Lockout
Configuring Login Password Retry Lockout
To configure Login Password Retry Lockout, perform the following steps.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
username name [privilege level] password encryption-type password
4.
aaa new-model
5.
aaa local authentication attempts max-fail number-of-unsuccessful-attempts
6.
aaa authentication login default method
DETAILED STEPS
Unlocking a Locked-Out User
To unlock the locked-out user, perform the following steps.
Note
This task can be performed only by users having root privilege (level 15).
SUMMARY STEPS
1.
enable
2.
clear aaa local user lockout {username username | all}
DETAILED STEPS
Clearing the Unsuccessful Attempts of a User
To clear the unsuccessful attempts of a user that have already been logged, perform the following steps.
SUMMARY STEPS
1.
enable
2.
clear aaa local user fail-attempts {username username | all}
DETAILED STEPS
Monitoring and Maintaining Login Password Retry Lockout
To monitor and maintain the Login Password Retry Lockout configuration, perform the following steps.
SUMMARY STEPS
1.
enable
2.
show aaa local user locked
DETAILED STEPS
Configuration Examples for Login Password Retry Lockout
This section provides the following configuration examples:
•
Login Password Retry Lockout: Example
•
show aaa local user lockout Command: Example
Login Password Retry Lockout: Example
The following show running-config command output illustrates that the maximum number of failed user attempts has been set for 2:
Router # show running-configBuilding configuration...Current configuration : 1214 bytes!version 12.3no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname LAC-2!boot-start-markerboot-end-marker!!username sysadminusername sysad privilege 15 password 0 ciscousername user1 password 0 ciscoaaa new-modelaaa local authentication attempts max-fail 2!!aaa authentication login default localaaa dnis map enableaaa session-id commonshow aaa local user lockout Command: Example
The following output shows that user1 is locked out:
Router# show aaa local user lockoutLocal-user Lock timeuser1 04:28:49 UTC Sat Jun 19 2004Additional References
The following sections provide references related to Login Password Retry Lockout.
Related Documents
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents the following new commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3T command reference publications.
•
aaa local authentication attempts max-fail
•
clear aaa local user fail-attempts
•
clear aaa local user lockout
•
show aaa local user locked
aaa local authentication attempts max-fail
To specify the maximum number of unsuccessful authentication attempts before a user is locked out, use the aaa local authentication attempts max-fail command in global configuration mode. To remove the number of unsuccessful attempts that was set, use the no form of this command.
aaa local authentication attempts max-fail number-of-unsuccessful-attempts
no aaa local authentication attempts max-fail number-of-unsuccessful-attempts
Syntax Description
Defaults
Login Password Retry Lockout feature is not enabled.
Command Modes
Global configuration
Command History
Usage Guidelines
A system message is generated when a user is either locked by the system or unlocked by the system administrator.
%AAA-5-USER_LOCKED: User user1 locked out on authentication failure.An administrator cannot be locked out.
Note
No messages are displayed to users after authentication failures that are due to the locked status (that is, there is no distinction between a normal authentication failure and an authentication failure due to the locked status of the user.
Note
Unconfiguring this command will maintain the status of the user with respect to locked-out or number-of-failed attempts. To clear the existing locked-out or number-of-failed attempts, the system administrator has to explicitly clear the status of the user using clear commands.
Examples
The following example illustrates that the maximum number of unsuccessful authentication attempts before a user is locked out has been set for 2:
username sysadminusername sysad privilege 15 password 0 ciscousername user1 password 0 ciscoaaa new-modelaaa local authentication attempts max-fail 2!!aaa authentication login default localaaa dnis map enableaaa session-id commonip subnet-zeroRelated Commands
clear aaa local user fail-attempts
To clear the unsuccessful login attempts of a user, use the clear aaa local user fail-attempts command in privileged EXEC mode.
clear aaa local user fail-attempts {username username | all}
Syntax Description
Defaults
Unsuccessful login attempts are not cleared.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
This command is available only to users having root privilege.
Examples
The following example shows that the unsuccessful login attempts for all users will be cleared:
Router# clear aaa local user fail-attempts allRelated Commands
clear aaa local user lockout
To unlock the locked-out users, use the clear aaa local user lockout command in privileged EXEC mode.
clear aaa local user lockout {username username | all}
Syntax Description
Defaults
Locked-out users remain locked out.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Only a user having root privilege can use this command.
Examples
The following example shows that all locked-out users will be unlocked:
Router# clear aaa local user lockout allRelated Commands
Glossary
•
Local AAA method—Method by which it is possible to configure a local user database on a router and to have AAA provision authentication or authorization of users from this database.
•
Local AAA user—User who is authenticated using the Local AAA method.
Note
Refer to Internetworking Terms and Acronyms for terms not included in this glossary.
Copyright © 2005 Cisco Systems, Inc. All rights reserved.

