Pcornel
Identity

Kerberos

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

Back to the Topic

Answer

Kerberos is how users and services authenticate in an Active Directory domain: the user gets a ticket from a domain controller at logon, and uses it to obtain a ticket for each service — identified by its service principal name (SPN).

Remember

Three dependencies: time (within 5 minutes), DNS, and the SPN — registered once, on the account the service runs as. Connecting by IP address normally means NTLM, not Kerberos. Tickets carry group membership from when they were issued.

First checks

  • klist — Kerberos tickets in the session
  • klist purge — clear tickets
  • setspn -Q <spn> — find which account has an SPN
  • nltest /dsgetdc:<domain> /kdc — find a KDC
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4768,4769,4771} — KDC events on DCs

Commands

klist
List or purge cached Kerberos tickets.

Verify in this order

logon → AS (TGT) → TGS (service ticket for SPN) → AP to the service

Where it usually breaks

First mismatch in forest/domain/object identity → authoritative DC/source policy → replication/KDC/GP processing → client token/effective policy → target resource → event/audit verification; preserve identity/native error/pre-state before mutation.

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

Confirmation

Confirm action

Continue?