Skip to content

Kerberos auth to SQL or an internal web app fails, I suspect SPN issues.

Service Principal Names (SPNs) link a service to an AD account. With duplicate or missing SPNs Kerberos auth fails and you fall back to NTLM, or it stops working entirely.

Try this first

  1. 1Find duplicate SPNs: setspn -X (across the whole forest). An SPN may exist only once.
  2. 2For SQL: SPNs go on the service account if SQL runs under a domain account, not on the computer account. Format: MSSQLSvc/server.fqdn:1433 and MSSQLSvc/server.fqdn:instance.
  3. 3For IIS: SPN on the app pool identity. Format: HTTP/siteurl and HTTP/siteurl.fqdn. 'HTTP' uppercase.
  4. 4Wrong or duplicate SPN: setspn -D to remove, setspn -A on the correct account. Document what you change.
  5. 5Test: klist purge on the client, reconnect, klist shows a ticket for the right service. On failure: Event 4 on the client (KDC_ERR_S_PRINCIPAL_UNKNOWN or KRB_AP_ERR_MODIFIED).

When to bring us in

For gMSA (group Managed Service Accounts) SPNs are managed automatically. Recommended for modern SQL installs, saves manual SPN upkeep.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.