Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

SPN

Direct answer

An 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. Missing or duplicate SPNs make Kerberos fail or fall back to NTLM.

When to use this

Use this when services fail Kerberos due to SPN problems.

First 30 seconds

1. setspn -L <account> — SPNs registered.

2. setspn -Q <spn> — which account owns it.

3. Duplicates: setspn -X.

4. Add: setspn -S HTTP/web.contoso.com svc-web.

5. Clients must use that name.

Operational verification

service name → SPN → account whose key encrypts the ticket

Context & applicabilityCommon mistakes · platform/version boundaries
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 commandsetspn -L <account>
Scope / prerequisiteUse this when services fail Kerberos due to SPN problems.
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
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.

2 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 Common mistakes Narrow the fault
  • Registering SPNs on the wrong account.
Step 2 Known-good and broken paths Narrow the fault

Known-good: DNS/time/principal scope is correct, credential validation reaches LSASS/domain services as intended, the correct SPN/ticket/token is issued and the protected resource accepts that security context. Broken: authentication can succeed with a fallback mechanism while Kerberos is broken; a ticket can exist for the wrong SPN; a token can be valid yet lack effective authorization at the resource.

Evidence references

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.

observation · 1
Key points
  • Each SPN must be unique in the forest.
  • It is registered on the account the service runs as.
  • Every name clients use needs its own SPN.
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
ReferenceWhy it matters1 section · depth on demand

Internals and state

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

ReferenceHow it works2 sections · depth on demand

How it works

Anchor the same user/computer principal, logon session, ticket/token and target SPN/resource across the authentication path. How it works: Windows logon crosses Winlogon/LogonUI or a service logon caller, LSA/LSASS authentication packages, credential validation against local SAM or AD DS, token construction, group/SID expansion and the target service/resource authorization check. Kerberos additionally depends on DNS/DC discovery, time, SPN mapping, TGT/service-ticket exchange and the service accepting the ticket.

State

Anchor the same user/computer principal, logon session, ticket/token and target SPN/resource across the authentication path. Kerberos additionally depends on DNS/DC discovery, time, SPN mapping, TGT/service-ticket exchange and the service accepting the ticket.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Service Principal Names identify service instances for Kerberos: service/host[:port], e.g. HTTP/web01.corp.example.com, MSSQLSvc/sql01.corp.example.com:1433, cifs/fs01.

setspn -L CORP\svc-web                 # list SPNs on an account
setspn -Q HTTP/intranet.corp.example.com   # who owns this SPN
setspn -S HTTP/intranet.corp.example.com CORP\svc-web     # add with duplicate check
setspn -X                               # find duplicates

Duplicate SPNs break Kerberos (KDC cannot choose an account) and cause NTLM fallback. User accounts with SPNs are targets for Kerberoasting — use gMSAs with long random passwords and AES-only encryption.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 → SPN. 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
service principal namespnsetspn
Confirmation

Confirm action

Continue?