Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

Kerberos

Direct 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).

When to use this

Use it for repeated credential prompts, "access denied" on a service, or a silent fallback to NTLM.

First 30 seconds

1. klist — TGT and service tickets present?

2. Name used is the FQDN with a registered SPN?

3. Time skew < 5 minutes.

4. DC (KDC) reachable on 88.

5. Failures: Security 4771/4769 on DCs with result codes.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "The user got in, so Kerberos works." Windows may have fallen back to NTLM; klist shows whether a service ticket exists.
  • "Testing by IP address is equivalent." By IP address Windows normally does not use Kerberos at all.
  • "The password is right, so authentication cannot fail." A clock more than five minutes off, or a wrong SPN, fails with a correct password.
  • "The SPN exists, so it is fine." It must be on the account the service actually runs as, and only there.
  • "Group membership changed, so access changed." Tickets carry the groups from when they were issued; log off and on, or klist purge.
  • "A DNS alias for the server just works." The alias produces a different SPN, which must be registered.
Platform / version applicability
Windows Server Active Directory and identity
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows Server Active Directory and identity · Windows / Windows Server / PowerShell
Key commandklist
Scope / prerequisiteUse it for repeated credential prompts, "access denied" on a service, or a silent fallback to NTLM.
Reference · 1
What next?3 suggested next steps
Child topics (this level)7
Catalog command links1
Evidence0
On this pageJump to a specific section
Operational command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary

Tickets, SPNs, time/DNS dependencies, authentication flow and common Kerberos failure points.

Fast verification

  • Inspect tickets with klist, confirm accurate time and correct DNS/DC discovery.

- Check SPN uniqueness with setspn -Q when service tickets fail or fall back to NTLM.

- Separate ticket acquisition, service-ticket issuance and application authorization.

Step 2 Verification path Verify boundary
# Windows client: tickets in this logon session (TGT and service tickets)
klist
klist tgt

# Which KDC/DC does the client use?
nltest /dsgetdc:corp.example.com /kdc

# Is the SPN registered, and on which account?
setspn -Q HTTP/web.corp.example.com
setspn -X        # duplicate SPNs

# Time offset to the domain
w32tm /stripchart /computer:corp.example.com /samples:3 /dataonly

# On a DC: TGT requests (4768), service tickets (4769), pre-auth failures (4771)
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4768,4769,4771} -MaxEvents 20
# Linux
kinit anna@CORP.EXAMPLE.COM
klist
kvno HTTP/web.corp.example.com          # request a service ticket and show its kvno
klist -k /etc/krb5.keytab               # keys in the host keytab

After accessing the service, klist should show a ticket for its SPN. No ticket means Kerberos was not attempted (IP address, missing SPN) or failed and NTLM was used.

Step 3 Verification & troubleshooting Narrow the fault

Topic-specific scope

Path: Windows → Kerberos. Local intent: Kerberos reference area for Windows administration, verification and troubleshooting.

Step 4 Failure isolation workflow Narrow the fault

Kerberos additionally depends on DNS/DC discovery, time, SPN mapping, TGT/service-ticket exchange and the service accepting the ticket.

Verification chain: Scope → effective state/configuration → dependency → observable evidence → next discriminating check

Step 5 Failure boundaries Narrow the fault
  • Time wrong on client, server or DC → everything fails at once on that machine.
  • Name used by the client has no SPN (IP, CNAME alias, load-balancer name) → silent NTLM fallback or failure where NTLM is blocked.
  • SPN on the wrong or several accounts → KRB_AP_ERR_MODIFIED at the service.
  • Keytab stale after a password change → Linux/Java services reject tickets.
  • Encryption type mismatch after RC4 hardening → KDC_ERR_ETYPE_NOTSUPP for legacy accounts or appliances.
  • Delegation missing → front end authenticates the user, back end sees anonymous or the service account.
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key 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
ReferenceWhat it is3 sections · depth on demand

Direct Answer

Kerberos authenticates users to services with tickets from the KDC (every Windows DC): a TGT at logon, then a service ticket per service SPN. It fails for three main reasons — clock skew over 5 minutes, a name without the right SPN (or a duplicate SPN), and encryption-type mismatches (RC4 is being removed by 2026 Windows updates). klist shows whether a ticket for the service exists; no ticket usually means NTLM was used instead.

What it is

Kerberos is the default authentication protocol in Active Directory and is also used on Linux and in other directories (MIT Kerberos, FreeIPA). A user proves who they are once to the Key Distribution Center (KDC) — on Windows, every domain controller — and receives a ticket-granting ticket (TGT). With the TGT the client asks for a service ticket for each service it uses, identified by its service principal name (SPN), and presents that ticket to the service. Passwords are never sent to services. Kerberos depends on three things: correct time (≤ 5 minutes skew by default), DNS names that map to the right SPN, and a reachable KDC on port 88.

Mental model

Kerberos is the main authentication protocol in an Active Directory domain. A user proves their identity once to a domain controller and receives a ticket; with that ticket they request further tickets for each service they use. The password itself is never sent to the services.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use this Topic when a logon or access to a service prompts for credentials repeatedly, falls back to NTLM, fails with "access denied" for some users or machines, or when you set up SPNs, keytabs or delegation for a service. For the directory itself see Active Directory Domain Services; for service identities see Service Accounts.

Why it matters operationally

When Kerberos fails, users see repeated credential prompts, "access denied", or a silent fallback to the older NTLM protocol. The causes are few and specific: clocks out of step, a name that cannot be resolved, or a service name registered to the wrong account. Knowing the ticket exchange tells you which one to look for.

ReferenceHow it works1 section · depth on demand

How it works

The parties. The client; the Key Distribution Center (KDC), which runs on every domain controller; and the service the client wants to use.

The exchange.

1. Logon. The client asks the KDC for a ticket-granting ticket (TGT), proving knowledge of the user's password. The TGT is valid for 10 hours by default.

2. Service ticket. To use a service, the client presents the TGT and asks the KDC for a ticket for that service, identified by its service principal name (SPN) — for example HTTP/intranet.example.com or cifs/fileserver.example.com.

3. Access. The KDC finds the account that the SPN is registered on and encrypts the ticket with that account's key. The client hands the ticket to the service, which decrypts it with the same key and learns who the user is.

Everything rests on step 3: the ticket can be read only by the account that holds the SPN.

What it depends on.

DependencyIf it fails
TimeClocks more than 5 minutes apart: tickets are rejected
DNSThe client cannot find a domain controller, or builds the wrong SPN from the name
SPNNot registered: no ticket can be issued. Registered on the wrong account, or twice: the service cannot decrypt the ticket

The client builds the SPN from the name the user typed. Connecting by IP address gives no usable SPN by default, so Windows uses NTLM instead; so can a name or alias with no SPN registered.

Looking at it.

klist
klist purge
setspn -L <account>
setspn -Q HTTP/intranet.example.com
setspn -X

klist shows the tickets the current session holds — if there is a ticket for the service, Kerberos was used. setspn -Q finds which account an SPN is on; setspn -X finds duplicates.

In the logs. On domain controllers, Security events 4768 (TGT requested), 4769 (service ticket requested) and 4771 (pre-authentication failed) carry a result code. Common errors on clients: KDC_ERR_S_PRINCIPAL_UNKNOWN — no account has that SPN; KRB_AP_ERR_MODIFIED — the ticket was encrypted for a different account than the one running the service; KRB_AP_ERR_SKEW — time.

ReferenceImportant terms & boundaries2 sections · depth on demand

Mechanics

Messages

StepMessageResult
1AS-REQ / AS-REP (Authentication Service)Client proves knowledge of its key (pre-authentication) and gets a TGT
2TGS-REQ / TGS-REP (Ticket-Granting Service)Client presents the TGT and asks for a ticket for an SPN
3AP-REQ / AP-REPClient presents the service ticket to the service, which decrypts it with its own key

The service ticket is encrypted with a key derived from the service account's password, which is why weak service-account passwords are crackable offline (Kerberoasting). In Active Directory, tickets carry a PAC with the user's group SIDs, used by Windows services for authorisation.

Defaults that matter (Active Directory)

SettingDefault
Maximum clock skew5 minutes
TGT lifetime10 hours
TGT renewal7 days
Ports88 TCP/UDP (KDC), 464 (kpasswd)

SPNs

An SPN looks like HTTP/web.corp.example.com or MSSQLSvc/sql01.corp.example.com:1433. The client builds it from the name it connects to, so connecting by IP address or an alias without an SPN means no Kerberos (Windows falls back to NTLM). Each SPN must be registered on exactly one account; duplicates break authentication.

Encryption types and the RC4 phase-out

Modern domains should use AES (aes256-cts-hmac-sha1-96). Microsoft is removing RC4 from Kerberos: updates from January 2026 added audit events (KDCSVC 201–209 in the System log on DCs) for accounts that still depend on RC4, and from the April 2026 updates domain controllers assume AES-only for accounts without an explicit msDS-SupportedEncryptionTypes value. Accounts, appliances or keytabs that only support RC4 must be fixed or explicitly configured.

Delegation

A front-end service sometimes needs to act on behalf of the user towards a back end (web app → SQL). Options: unconstrained delegation (avoid — the service receives the user's TGT), constrained delegation (to listed SPNs) and resource-based constrained delegation (configured on the back-end resource).

Linux and MIT Kerberos

Linux uses /etc/krb5.conf for realms and KDCs, kinit/klist/kdestroy for user tickets and keytab files holding service keys (/etc/krb5.keytab). SSSD or realmd joins Linux hosts to AD and manages the host keytab.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle and ownership

  • Time: the domain time hierarchy (PDC Emulator → DCs → members) is a Kerberos dependency; monitor offsets.
  • SPNs: register SPNs when services are installed or renamed; remove them when services move. Audit duplicates regularly (setspn -X).
  • Service account secrets: prefer gMSA/dMSA; rotate keytabs when service passwords change (the key version number, kvno, must match).
  • krbtgt account: reset its password periodically (twice, with replication in between) and after any suspected compromise.
  • Encryption types: inventory RC4 dependencies with the DC audit events and move accounts to AES.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows Server Active Directory and identity current

Authoritative/upstream documentation reviewed for bounded claims in Kerberos. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-authentication-overview · confidence 94%
Terminology layer

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.

Aliases that resolve here
kerberoskerberos v5krb5
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

Error / eventMeaning
KRB_AP_ERR_SKEW (0x25)Clocks more than the allowed skew apart
KDC_ERR_PREAUTH_FAILED (0x18), event 4771Wrong password (or stale cached credential)
KDC_ERR_C_PRINCIPAL_UNKNOWN (0x6)User/computer account not found in this realm
KDC_ERR_S_PRINCIPAL_UNKNOWN (0x7)No account has the requested SPN — register it
KDC_ERR_ETYPE_NOTSUPP (0xE)No common encryption type — typically an RC4-only account/device after AES-only defaults
KRB_AP_ERR_MODIFIED (0x29)The service could not decrypt the ticket — SPN on the wrong account, duplicate SPN, or outdated keytab
Event 4769 with ticket encryption 0x17RC4 service ticket — an RC4 dependency to remove
klist shows no ticket for the serviceKerberos not used; check the name used to connect and SPN
Confirmation

Confirm action

Continue?