Issue with SSPI and MSSQLSvc account on a SQL server

We'e getting a lot of Kerbro errors on a SQL server and as a result cannot log in to the server via SSMS.
We repeatedly get a Kerberos error.  Having look it up I ran the command "setspn -X" and discovered that we have duplicate
registered MSSQLSvc accounts.

MSSQLSvc/server.xxx.local is registered on these accounts:
        CN=Jon doe,OU=Test GPO,DC=xxx,DC=local
        CN=server,OU=Computers,OU=xxx,DC=xxx,DC=local

MSSQLSvc/server.xxx.local:1433 is registered on these accounts:
        CN=Jon  Doe,OU=Test GPO,DC=xxx,DC=local
        CN=server,OU=Computers,OU=xxx,DC=xxx,DC=local

I ahve no idea what this even means except that we cannot connect any way but locally on the server.

Any ideas?
LVL 1
wannabecraigAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
What this returns?
setspn –L <MSSQL service account username>

Open in new window

wannabecraigAuthor Commented:
When I run the command on the server which is having the issue I get:
C:\>setspn -L XXX_service
Registered ServicePrincipalNames for CN=XXXX_service,OU=Special Users/Mailbox Us
ers,OU=Blackrock,DC=prepaypower,DC=local:

This is all I get.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Go to your server and check in Services the account used by SQL Server. That account name is the one that you should use to run this command.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

wannabecraigAuthor Commented:
ok, I've done that, this is what I get:


C:\>setspn -L XXX_service
Registered ServicePrincipalNames for CN=XXXX_service,OU=Special Users/Mailbox Us
ers,OU=Blackrock,DC=prepaypower,DC=local:
Vitor MontalvãoMSSQL Senior EngineerCommented:
So, no server names?
wannabecraigAuthor Commented:
NO, that's all the output I get
Vitor MontalvãoMSSQL Senior EngineerCommented:
Means that you need to add those servers with SETSPN -A parameter.
I wrote an article about this kind of error where you can see how to solve it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.