Pcornel
Networking · Security › AAA

TACACS+

Cheat sheet · https://pcornel.dk/topic.php?topic=755

Back to the Topic

Answer

TACACS+ administrative AAA must be read as separate authentication, authorization and accounting decisions for an exact service/method list. Configuration presence and server reachability alone do not prove the resulting access or audit record.

Remember

Inspect actual service/list bindings. Explicit rejection is different from method error/unavailability; local fallback is not tried after every rejection. Authentication success does not prove EXEC/command permission or accounting. Preserve independent recovery access before tests.

First checks

1. Identify service/list and retain console recovery.

2. Inspect source/VRF, server group and TCP/49 for the selected TACACS+ server.

3. Correlate device/server state and sanitized response.

4. Separate authentication, authorization and accounting results.

5. Test success/reject/group-unavailable behavior only in a bounded lab or approved scope; restore and verify normal access.

Commands

show aaa servers
Inspect AAA server state/statistics.
tacacs server <name>
Define a named TACACS+ server.
address ipv4 <server>
Set the IPv4 address of a named TACACS+ server (inside tacacs server configuration).
key <secret>
Set the shared key used with a TACACS+ server.
aaa group server tacacs+ <group>
Create a named TACACS+ server group for AAA method lists.
server name <name>
Reference a defined TACACS+ server inside a server group.
aaa authentication login default group <group> local
Authenticate logins against the AAA server group, falling back to local users only if the servers are unreachable.
aaa authorization exec default group <group> local
Authorize EXEC shells through the AAA server group, falling back to local authorization.
aaa accounting exec default start-stop group <group>
Send EXEC session start/stop accounting records to the named AAA server group.
show tacacs

Verify in this order

service/line binding → method list/group/source → server exchange → authentication result → authorization decision → configured accounting receipt → tested recovery

Where it usually breaks

wrong list or source → transport/secret/client identity → reject versus error → EXEC/command policy → missing accounting → untested recovery path

TACACS+ · technical reference

CapabilityTACACS+ reference
AuthenticationCentral identity decision
AuthorizationEXEC / command policy
AccountingAdministrative records
Management transportStill use SSH/HTTPS separately

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=755

Confirmation

Confirm action

Continue?