T The Triage ManualTechnical Guides for IT Emergencies
P3 · Active Directory

SQL Server Kerberos Falls Back to NTLM Due to Duplicate SPN After Server Rename or Migration

Following a SQL Server migration where the new server was renamed to match the old one, Kerberos authentication silently falls back to NTLM because a conflicting MSSQLSvc SPN remains registered under the old domain service account. The duplicate SPN causes Active Directory to be unable to uniquely resolve the Kerberos principal, forcing NTLM. Removing the stale SPN from the old account and allowing AD replication to propagate restores Kerberos authentication.

Indicators

Likely causes

Diagnostic steps

  1. Confirm the authentication scheme in use by running the following query on the affected SQL Server instance: SELECT net_transport, auth_scheme FROM sys.dm_exec_connections WHERE session_id = @@SPID; — a result of 'NTLM' over TCP confirms Kerberos is not being used.
  2. Enumerate all MSSQLSvc SPNs registered in the domain to detect duplicates: SetSPN -Q MSSQLSvc/* — look for the same SPN value appearing under more than one account.
  3. List SPNs registered under both the old and new service accounts individually to identify which account holds the conflicting entry: SetSPN -L DOMAIN\OldAccount and SetSPN -L DOMAIN\NewAccount
  4. Cross-reference the output of SetSPN -L with SetSPN -Q MSSQLSvc/Machine.domain.inet:1433 to confirm exactly which account holds the duplicate SPN that should have been removed.
  5. Review the SQL Server error log for SPN-related entries (search for 'Service Principal Name') to confirm whether SQL Server itself attempted and reported successful SPN registration, which would indicate the conflict is on the AD side rather than in SQL Server configuration.
  6. Remove the conflicting SPN from the old domain account for both the named and port-specific SPN formats: SetSPN -D MSSQLSvc/Machine.domain.inet DOMAIN\OldAccount and SetSPN -D MSSQLSvc/Machine.domain.inet:1433 DOMAIN\OldAccount
  7. Wait approximately 30 minutes for Active Directory replication to propagate the SPN deletion across all domain controllers, then re-run the auth_scheme query from step 1 to confirm auth_scheme now returns 'KERBEROS'.

Resolution path

Prevention

Tools

References

kerberosntlmspnsql-serversql-server-2012active-directorysetspnlinked-serversserver-migrationserver-renameauthenticationduplicate-spnservice-accountwindows-server