Pcornel
Identity · Kerberos

Kerberos Authentication

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

Back to the Topic

Answer

Kerberos authentication in AD: the client gets a TGT from the KDC at logon, then requests a service ticket for each server's SPN and presents it to the server, which validates it without contacting the DC.

Remember

  • The client first gets a TGT, then a service ticket per service.
  • Services are found by their SPN.
  • All parties need synchronized clocks.

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

Verify in this order

AS-REQ/REP → TGS-REQ/REP → AP-REQ

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=3277

Confirmation

Confirm action

Continue?