Use it when administrators cannot log on to devices, land at the wrong privilege level, or before changing AAA on a device you could be locked out of.
AAA (Authentication, Authorization and Accounting)
user → authenticate → authorise → act → account (log)
Context & applicabilityCommon mistakes · platform/version boundaries
- "If the server rejects the user, the local account takes over." The next method is tried only when the server does not answer at all.
- "The user can log on, so AAA works." Authorization is separate; the user may land at the wrong privilege level.
- "
aaa new-modelis harmless on its own." It immediately changes how every line authenticates. - "The default list covers the console differently." It applies to all lines unless a named list is attached.
- "The server is reachable by ping, so AAA can use it." The protocol port, the shared key and the source address the server expects must also match.
- "Accounting is on because authentication is." It is configured separately.
Success at one AAA stage shows only that stage for the tested request, but it does not show later enforcement, resource outcome, complete accounting or secure failure behavior.
Suspicious evidence: implicit local fallback, fail-open access, attribute loss, inconsistent policy, missing stop records, shared sessions or successful AAA with an unauthorized resource outcome.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
access request → authentication → principal/session → authorization decision → enforcement/resource outcome → accounting and correlation
Healthy evidence: allowed and denied tests produce expected identity, authorization and accounting records, fallback behavior matches policy and the resource outcome correlates to the decision.
Step 2 Operational verification Verify boundary
Authentication, authorization and accounting flows, policy decisions and operational verification.
Fast verification
- Verify reachability/source IP, shared secret and server policy before testing fallback behavior.
- Separate authentication, authorization and accounting; each can succeed/fail independently.
- Inspect device and AAA-server logs for the same request rather than assuming a network timeout.
Step 3 Verification & troubleshooting Narrow the fault
Path: Security → Security Fundamentals → AAA. Local intent: AAA separates Authentication, Authorization and Accounting so identity evidence, permission decisions and activity evidence can be designed, tested and failed independently.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The next method in a list is tried only when the server gives no answer — a reject is final. Keep a tested local account as fallback, a second session open while changing AAA, and consider reload in 10. Authentication and authorization are configured separately.
show aaa servers (Cisco)— AAA server statustest aaa group tacacs+ <user> <pw> new-code— test authenticationGet-WinEvent -LogName Security -MaxEvents 20— Windows authentication/audit events
ReferenceWhat it is1 section · depth on demand
Mental model
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use this Topic when the problem is in AAA. Use Identity & Authentication when the problem concerns identity, authentication, certificates, access control, hardening, secure transport or security evidence.
Why it matters operationally
With AAA, an administrator logs on to every switch and router with their own account, their rights are set centrally, and each command can be logged. Its risk is equally concrete: a mistake in the configuration, or an unreachable server without a working fallback, locks everyone out of the device.
ReferenceHow it works1 section · depth on demand
How it works
The three functions are separate.
| Function | Decides | Typical failure |
|---|---|---|
| Authentication | Whether the user is who they claim | Logon rejected |
| Authorization | What the user may do: privilege level, permitted commands, VLAN | Logged on, but with too few rights |
| Accounting | Records sessions and commands | No trail of who did what |
A user can pass authentication and still fail authorization; the two are configured, and debugged, separately.
Method lists. On Cisco IOS, AAA is enabled with aaa new-model, and each function gets a list of methods tried in order:
aaa new-model
aaa authentication login default group tacacs+ local
aaa authorization exec default group tacacs+ local
aaa accounting exec default start-stop group tacacs+
Here logons are checked against the TACACS+ servers first and the local user database second.
When the next method is used. Only when the previous one gives no answer — the server is unreachable. If the server answers "reject", that is final; the local account is not tried. The local fallback is therefore for outages only, and it must exist: a local user with a known password, tested.
Lists and lines. The list named default applies to every line. A named list applies only where it is attached — for example a console line that uses local authentication only, so the console stays usable whatever happens to the servers.
Protocols. RADIUS is usual for network access (802.1X, VPN, wireless); TACACS+ for device administration, because it can authorize individual commands.
Looking at it.
show aaa servers
show aaa sessions
test aaa group tacacs+ <user> <password> legacy
debug aaa authentication
show aaa servers shows each server as up or dead with request counters; test aaa checks a server without logging out.
Changing it safely. Keep a second session open while changing AAA, and test a new logon before closing it. A scheduled reload in 10, cancelled once the new logon works, is a common safety net.
ReferenceImportant terms & boundaries1 section · depth on demand
What this shows and what it does not
Success at one AAA stage shows only that stage for the tested request, but it does not show later enforcement, resource outcome, complete accounting or secure failure behavior.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security Fundamentals → AAA. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Security Fundamentals → AAA proof map
Fast scope, effective-state, outcome and acceptance evidence boundaries for Security Fundamentals → AAA.
| Evidence boundary | What to establish | What it does not establish |
|---|---|---|
| Scope and context | Asset, owner, subject, action, data flow, time and expected security outcome | Does not prove the inventory, threat model or business assumptions are complete |
| Design and effective state | Intended policy/control plus the identity, configuration, coverage and dependencies actually in force | Configuration presence does not prove consistent enforcement or operating effectiveness |
| Outcome evidence | Allowed, denied, failure and recovery tests correlated with telemetry | One successful test does not prove every path, time or attacker condition |
| Acceptance | Gap, residual risk, owner, review trigger and retest result are recorded | Acceptance does not remove the risk or make it permanent |