Link to home
Create AccountLog in
Active Directory

Active Directory

--

Questions

--

Followers

Top Experts

Avatar of smillion
smillion🇺🇸

Duplicate spn for MSSQLSvc, what to do?
Hello Experts!

My domain controller is giving a periodic error:

Kerberos-Key-Distribution-Center, event id 11
Description:
The KDC encountered duplicate names while processing a Kerberos authentication request. The duplicate name is MSSQLSvc/computer.domain.com:1433 (of type DS_SERVICE_PRINCIPAL_NAME). This may result in authentication failures or downgrades to NTLM. In order to prevent this from occuring remove the duplicate entries for MSSQLSvc/computer.domain.com:1433 in Active Directory.  

I read up and there are suggestions to run setspn -x  to get duplicate spn entries.  

C:\Users\AdminUser3>setspn -X
Processing entry 0
MSSQLSvc/ComputerDB01.domain.com is registered on these accounts:
        CN=AdminUser1,OU=AdminUsers,DC=domain,DC=com
        CN=AdminUser2,OU=AdminUsers,DC=domain,DC=com

MSSQLSvc//ComputerDB02.domain.com is registered on these accounts:
        CN=AdminUser1,OU=AdminUsers,DC=domain,DC=com
        CN=ComputerDB02,OU=Managed,OU=Servers,DC=domain,DC=com

MSSQLSvc/ComputerDB02.domain.com:1433 is registered on these accounts:
        CN=AdminUser1,OU=AdminUsers,DC=srhost,DC=secure-res,DC=com
        CN=ComputerDB02,OU=Managed,OU=Servers,DC=domain,DC=com

MSSQLSvc/ComputerDB01.srhost.secure-res.com:1433 is registered on these accounts:
        CN=AdminUser1,OU=AdminUsers,DC=domain,DC=com
        CN=AdminUser3,CN=Users,DC=domain,DC=com
        CN=ComputerDB01,OU=Managed,OU=Servers,DC=domain,DC=com

found 4 groups of duplicate SPNs.

So I have two separate spns one for each SQL Server and one for the SQL Server on port 1433.  The first one has just two users on it, one of them on a disabled account.  I removed that entry via adsi edit.

Reading some posts, there is comment as to which account should have the spn.  What I see is that if your instance of SQL is running under Localsystem, that that computer should have the spn on it.  

My questions.  What is the best course of action here to clean up these records?  These are critical servers that I do not want to bring down.  Should all entries have the local computer account?  What's the difference between the entry without a port and the one with the port 1433?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of gothamitegothamite🇬🇧

You can use the SetSPN tool to remove clean up these SPNs :

http://technet.microsoft.com/en-us/library/cc755413(WS.10).aspx


ASKER CERTIFIED SOLUTION
Avatar of smillionsmillion🇺🇸

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of smillionsmillion🇺🇸

ASKER

Closing this out.  I'm not having problems since making the change.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Active Directory

Active Directory

--

Questions

--

Followers

Top Experts

Active Directory (AD) is a Microsoft brand for identity-related capabilities. In the on-premises world, Windows Server AD provides a set of identity capabilities and services, and is hugely popular (88% of Fortune 1000 and 95% of enterprises use AD). This topic includes all things Active Directory including DNS, Group Policy, DFS, troubleshooting, ADFS, and all other topics under the Microsoft AD and identity umbrella.