Configuring the TACACS+ server for single login
For the single login feature to work correctly you must check some entries in the User Setup on the TACACS+ server:
As shown in Configuring the switch TACACS+ server access, login and enable access is always available locally through a direct terminal connection to the switch console port. However, for Telnet access, you can configure TACACS+ to deny access if a TACACS+ server goes down or otherwise becomes unavailable to the switch.
Access method and privilege level |
Authentication options |
Effect on access attempts |
|
---|---|---|---|
Primary |
Secondary |
||
Console — Login | local |
none* |
Local username/password access only. |
tacacs |
local |
If Tacacs+ server unavailable, uses local username/password access. |
|
Console — Enable | local |
none |
Local username/password access only. |
tacacs |
local |
If Tacacs+ server unavailable, uses local username/password access. |
|
Telnet — Login | local |
none* |
Local username/password access only. |
tacacs |
local |
If Tacacs+ server unavailable, uses local username/password access. |
|
tacacs |
none |
If Tacacs+ server unavailable, denies access. |
|
Telnet — Enable | local |
none |
Local username/password access only. |
tacacs |
local |
If Tacacs+ server unavailable, uses local username/password access. |
|
tacacs |
none |
If Tacacs+ server unavailable, denies access. |
During local authentication (which uses passwords configured in the switch instead of in a TACACS+ server), the switch grants read-only access if you enter the operator password, and read-write access if you enter the manager password. For example, if you configure authentication on the switch with Telnet Login Primary as Local and Telnet Enable Primary as Tacacs, when you attempt to Telnet to the switch, you will be prompted for a local password. If you enter the switch local manager password (or, if there is no local manager password configured in the switch) you can bypass the TACACS+ server authentication for Telnet Enable Primary and go directly to read-write (manager) access. Thus, for either the Telnet or console access method, configuring Login Primary for Local authentication while configuring Enable Primary for TACACS+ authentication is not recommended, as it defeats the purpose of using the TACACS+ authentication. If you want Enable Primary log-in attempts to go to a TACACS+ server, then you should configure both Login Primary and Enable Primary for Tacacs authentication instead of configuring Login Primary to Local authentication.
Access options
The following is a set of access options and the corresponding commands to configure them:
- Console login (operator or read-only) access, primary using TACACS+ server and secondary using local
switch(config)#aaa authentication console login tacacs local
- Console enable (manager or read/write) access, primary using TACACS+ server and secondary using local
switch(config)#aaa authentication console enable tacacs local
- Telnet login (operator or read-only) access, primary using TACACS+ server and secondary using local
switch(config)#aaa authentication Telnet login tacacs local
- Telnet enable (manager or read/write) access, primary using TACACS+ server and secondary using local
switch(config)#aaa authentication telnet enable tacacs local
- Deny access and close the session after failure of two consecutive username/password pairs
switch(config)#aaa authentication num-attempts 2