Use it for repeated credential prompts, "access denied" on a service, or a silent fallback to NTLM.
Kerberos
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).
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.
Context & applicabilityCommon mistakes · platform/version boundaries
- "The user got in, so Kerberos works." Windows may have fallen back to NTLM;
klistshows 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.
Operational reference
Fast context before you go deeper.
klistPrimary Commands
Configuration and operational commands for this Topic.
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 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
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_MODIFIEDat the service. - Keytab stale after a password change → Linux/Java services reject tickets.
- Encryption type mismatch after RC4 hardening →
KDC_ERR_ETYPE_NOTSUPPfor legacy accounts or appliances. - Delegation missing → front end authenticates the user, back end sees anonymous or the service account.
Subtopics
Go one level deeper into this subject.
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.
Subtopic KDCThe KDC (Key Distribution Center) is the Kerberos service on every domain controller.
Subtopic TGTThe TGT (ticket-granting ticket) is the Kerberos ticket a user receives at logon, valid for 10 hours by default.
Subtopic Service TicketsA service ticket is a Kerberos ticket for one specific service, encrypted with that service account's key.
Subtopic SPNAn SPN (Service Principal Name), like HTTP/web01.corp.local, links a service to the account it runs as so the KDC can issue tickets for it.
Subtopic Time SynchronizationKerberos requires client and DC clocks to be within 5 minutes by default, because tickets carry timestamps to block replay.
Subtopic Kerberos TroubleshootingTroubleshoot Kerberos with klist to view tickets, the System and Security logs (events 4768, 4769, 4771), clock skew checks, setspn -Q for missing or duplicate SPNs, DNS name usage instead of IPs, and encryption type support.
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.
klist— Kerberos tickets in the sessionklist purge— clear ticketssetspn -Q <spn>— find which account has an SPNnltest /dsgetdc:<domain> /kdc— find a KDCGet-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.
| Dependency | If it fails |
|---|---|
| Time | Clocks more than 5 minutes apart: tickets are rejected |
| DNS | The client cannot find a domain controller, or builds the wrong SPN from the name |
| SPN | Not 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
Scope and canonical references
This Topic owns the Kerberos protocol across platforms.
- Parts of the exchange: KDC, TGT, Service Tickets, SPN, Time Synchronization.
- Fault isolation: Kerberos Troubleshooting and, in Windows, Kerberos Problems.
- Legacy fallback: NTLM, NTLM vs Kerberos.
- Attacks and hardening (Kerberoasting, delegation abuse, golden tickets): Active Directory Security.
- Service account choice (gMSA/dMSA): Service Accounts.
Mechanics
Messages
| Step | Message | Result |
|---|---|---|
| 1 | AS-REQ / AS-REP (Authentication Service) | Client proves knowledge of its key (pre-authentication) and gets a TGT |
| 2 | TGS-REQ / TGS-REP (Ticket-Granting Service) | Client presents the TGT and asks for a ticket for an SPN |
| 3 | AP-REQ / AP-REP | Client 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)
| Setting | Default |
|---|---|
| Maximum clock skew | 5 minutes |
| TGT lifetime | 10 hours |
| TGT renewal | 7 days |
| Ports | 88 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.
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
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 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%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.
Deep reference
Healthy vs suspicious evidence
Output interpretation
| Error / event | Meaning |
|---|---|
KRB_AP_ERR_SKEW (0x25) | Clocks more than the allowed skew apart |
KDC_ERR_PREAUTH_FAILED (0x18), event 4771 | Wrong 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 0x17 | RC4 service ticket — an RC4 dependency to remove |
klist shows no ticket for the service | Kerberos not used; check the name used to connect and SPN |