aaa authentication login
Use the aaa authentication login Global Configuration mode command to set one or more authentication methods to be applied during login. Use the no form of this command to restore the default authentication method.
Syntax
aaa authentication login [authorization] {default | list-name} method1 [method2...]
no aaa authentication login {default | list-name}
Parameters
-
authorization—Specifies that authentication and authorization are applied to the given list. If the keyword is not configured, then only authentication is applied to the given list.
-
default—Uses the authentication methods that follow this argument as the default method list when a user logs in (this list is unnamed).
-
list-name—Specifies a name of a list of authentication methods activated when a user logs in. (Length: 1–12 characters)
-
method1 [method2...]—Specifies a list of methods that the authentication algorithm tries (in the given sequence). Each additional authentication method is used only if the previous method returns an error, not if it fails. To ensure that the authentication succeeds even if all methods return an error, specify none as the final method in the command line. Select one or more methods from the following list::
Keyword |
Description |
---|---|
enable |
Uses the enable password for authentication. |
line |
Uses the line password for authentication. |
local |
Uses the locally-defined usernames for authentication. |
none |
Uses no authentication. |
radius |
Uses the list of all RADIUS servers for authentication. |
tacacs |
Uses the list of all TACACS+ servers for authentication. |
Default Configuration
If no methods are specified, the default are the locally-defined users and passwords. This is the same as entering the command aaa authentication login local.
Command Mode
Global Configuration mode
User Guidelines
Create a list of authentication methods by entering this command with the list-name parameter where list-name is any character string. The method arguments identifies the list of methods that the authentication algorithm tries, in the given sequence.
Note |
If authorization is enabled for login and the switch receives from a TACACS+ server user level 15, then the enable command is not required and if received level 1 the enable command is required. |
The no aaa authentication login list-name command deletes a list-name only if it has not been referenced by another command.
Example
The following example sets the authentication login methods for the console.
switchxxxxxx(config)# aaa authentication login authen-list radius local none
switchxxxxxx(config)# line console
switchxxxxxx(config-line)# login authentication authen-list