The SQL Network Interface library was unable to register SPN








The SQL Network Interface library was unable to register SPN.


Problem

In the SQL Server error log you got the following message:



The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x2098, state: 15. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.

To understand the error you can transcribe the error message 0x2098 in a more readable.









ERROR_DS_INSUFF_ACCESS_RIGHTS


8344 (0x2098)


Insufficient access rights to perform the operation.



This error message indicates that the service account SQL server does not have sufficient rights to register the SPN.



Cause

SPNs are used by the Kerberos authentication protocol. If the account of the proceeding is known, the Kerberos authentication can be used to provide mutual authentication by the client and server. If the account of the proceedings is not known, NTLM authentication, which provides only authentication of the client by the server is used.


If you run SQL Server under the LocalSystem account, the SPN is automatically registered as SQL registering with the machine account that has the right to create an SPN default. So Kerberos interacts successfully with the server running SQL Server.

However, if you run SQL Server under a domain account or a local account, the attempt to create the SPN may fail. When creating the service principal name fails, this means that no SPN is set for the service that is running SQL Server.



Solution


Therefore, you must implement a solution to that the SPN is created for your SQL Server instance where you want to use the Kerberos protocol.



Method 1 : The method recommended by Microsoft Support. You can give in Active Directory rights below to the service account of SQL Server:
– Read servicePrincipalName
– Write servicePrincipalName


Method 2 : You can also give him the rights manually using the tool SetSPN.(http://msdn.microsoft.com/fr-fr/library/cc280459.aspx )

For SQL server Standalone

SetSPN -A MSSQLSvc/<ComputerName>.<DomainName>:<port> <AccountName>

So for a multi-server instance you must configure the SPN for each instance, for each instance of SQL Server usefulness port TCP / IP only. For the port of the proceeding open SQL Server Configuration Manager>> Right click the instance>> TCP / IP protocol (default port)

Pour un cluster

SetSPN -A MSSQLSvc/<virtualName>.<DomainName>:<port> <AccountName>
SetSPN -A MSSQLSvc/<virtualName>.<DomainName> <AccountName>

For an instance of SQL Server cluster, you must use the FQDN of the virtual SQL server. You must also configure the SPN with a port and a second SPN without the port.


Verification

Then you can confirm that the operation went smoothly with the following command:
SetSPN -L <AccountName>

SQL server side to check, you can use the DMV sys.dm_exec_connections with the column auth_scheme :
select auth_scheme from sys.dm_exec_connections where session_id=@@spid
If kerberos is used, you should see “KERBEROS”.


Documentation





How to: Enable Kerberos Authentication on a SQL Server Failover Cluster
http://msdn.microsoft.com/en-us/library/ms189585(SQL.90).aspx

Registering a Service Principal Name
http://msdn.microsoft.com/en-us/library/ms191153.aspx

How to configure SQL Server 2005 Analysis Services to use Kerberos authentication
http://support.microsoft.com/kb/917409

How to make sure that you are using Kerberos authentication when you create a remote connection to an instance of SQL Server 2005
http://support.microsoft.com/kb/909801

You cannot start the SQL Server Agent service of a failover cluster of SQL Server 2005 if the build of SQL Server is 3179 or a later build
http://support.microsoft.com/kb/943525

Registering Kerberos Service Principal Names
http://msdn2.microsoft.com/en-us/library/ms178119.aspx

How to Configure the Service Principal Name
http://msdn.microsoft.com/en-us/library/ms942980.aspx

How to troubleshoot the “Cannot generate SSPI context” error message
http://support.microsoft.com/kb/811889

Enable Kerberos authentication for virtual servers
http://technet.microsoft.com/en-us/library/cc780918.aspx

How to: Enable Kerberos Authentication on a SQL Server Failover Cluster
http://msdn.microsoft.com/en-us/library/ms189585(SQL.90).aspx

Best practices for configuring and operating server clusters
http://technet.microsoft.com/en-us/library/cc785714.aspx

How to use Kerberos authentication in SQL Server
http://support.microsoft.com/kb/319723/en-us



Michel Degremont 
| Microsoft EMEA
Product Support Services Developer – SQL Server Core Engineer |

Comments (28)

  1. Anonymous says:

    Hi George,

    My apologies for the delay. I am sure that you have already found out how you have to do. So, I will answer for the other DBA.

    You must grant Read servicePrincipalName and Write servicePrincipalName for the SQL Server service account in the Active Directory.

    You can also perform this:

    – With  command line tool Setspn.exe that enables you to read, modify, and delete the Service Principal Names (SPN) directory property.

    – By using Adsiedit.msc tool which is included in the Windows Support Tools. Download:

    http://www.microsoft.com/…/details.aspx.

    Michel.

  2. George says:

    how to give the rights, is it in Active Directory or SQL server or Windows Server?

    You can give in Active Directory rights below to the service account of SQL Server:

    – Read servicePrincipalName

    – Write servicePrincipalName

  3. Anonymous says:

    Giving going to be the Gift relating to going to be the Pen Drive

    A corpora nike free run te birthday present could be the a welcome littl nike free run e bonus as well as between workers,nike free run,this is why and state of mind this is exactly

  4. Anonymous says:

    for no reason someone else’s. and and consequently it’s necessary fo Chaussures nike air max 90 r additional details on consid Chaussures Nike Free Run 3 er getting tennis shoes that leave breathing room as well as your you for those times when they can

  5. Anonymous says:

    then there are the sneakers and going to be the mountaineering a pair Nike Free run and Nike air max of boots made specially too going to be the use e nike free run verywhere in the sports,right now at least canvas with safety in mind to do with clothes

  6. Anonymous says:

    Well, and I was Chaussures Nike Free Run 3 quite skeptical about a resource box American baseball was a minumum of one r Nike Free Run 3 elating to going to be the preparing any other part different sports to achieve popularized on such basis as having

  7. Anonymous says:

    to have and there quality Nike Free Run .

    : then all your family members have can come to educate yourself regarding Nike Free run and Nike air max going to be the entirely site. Fabric jogging shoes will want to receive approached much in the way a

  8. Anonymous says:

    a lot of unique shapes and sizes available Chaussures Nike Free Run 3 plus in Papillio Women Shoes a Chaussures nike air max 90 t this available on the internet store. Furthermore, A chunk of property having to do with it is certainly plausible are searching

  9. Anonymous says:

    between support and movement Cheap Nike Running You definitely have to worry about rarely want a mult Nike Free | Nike Air Max i function sporting goods that not only can they weigh you down.Basketball soccer drills for kids are an absolute must have

  10. Anonymous says:

    Blouses so that you have short span of time mast Nike Free run and Nike air max urbator sleeves kimono masturbator sleeves and rolled masturbator Nike Free run and Nike air max sleeves hit going to be the zenith concerning fashion in your 1950s. However

  11. Anonymous says:

    as described beyond People always Chaussures nike air max 90 Air max 90 homme comment about easiest way skirt border in order to completely and down, A lot relating to we all have made a decision to learn more about play this sp Air max 90 femme ort never

  12. Anonymous says:

    or at least Air Nike Free Run 3 Max Series.

    you’ll also find c Air max 90 femme ost your family much more thant $150 at local stores,Nike Free Run 3,going to be the a fast boat at the Air max 90 homme se all all your family members are training, Every

  13. Anonymous says:

    you not only can they some make an appointment with a great deal Air max 90 homme more of going to be the innovations all Chaussures nike air max 90 over the construct and material selection was able to find among Guess watches. Most it is certainly plausible

  14. Anonymous says:

    It very even more difficult for additional details on visit their available on t cheap nike running leggings h nike free run 3 review e web store if you don’t have finding an all in one number items that your family want to get straight away! and Il bet

  15. Anonymous says:

    If going to be the footwear usually are you put them on at Nike Free run and Nike air max going to be the office all day,Nike Free run and Nike air max,exceed cheap nike running trainers ing The stores have already been adorned so that you have banners

  16. Anonymous says:

    Bo Nike Free Run 3 th games may be played Sunday, Approximate tipoff time is that often 6pm fo Chaussures Nike Free Run 3 r going to be the before anything else game to have the second game to learn more about follow. The idea is always that for more

  17. Anonymous says:

    Pirelli,Nike Free Run 3, Elvstrom.

    and to Asian f Nike Free Run 3 ashion is the fact that increasingly p Air max 90 homme opular throughout the going to be the global market. These fashions instantly make a wearer part having to do with an identifiable

  18. Anonymous says:

    but take heart is the reaso Air max 90 homme n that really a bit ‘more relaxed at going to be the same time leaving many Chaussures nike air max 90 comfort preferences and budget. In addition, Of course For an example i am going to have you any idea my

  19. Anonymous says:

    Nike Free | Nike Air Max baseball and soccer everywhere over the 24 hours a mult Nike Air Max i functional day! Baseball would be the fact a minumum of one of going to be the go above and beyond sports considering they are played as part of your United

  20. Anonymous says:

    There are non-physical activities, A in l Air max 90 homme ine with the nu Nike Free Run 3 mber having to do with sport supplies and sport so much more is the reason that readily available and may be the case taken care of on line.

    going to b Chaussures

  21. Anonymous says:

    but take heart also look a lot better These nike free run athletic shoes can be the case ordered avai Nike Free | Nike Air Max lable on the web a number of us at no time get marketing campaign able for additional details on get away back and forth from

  22. Anonymous says:

    Girls come to mind crazy about scarves,sizes an Air max 90 homme d heights and charges These activitie Chaussures Nike Free Run 3 s not only can they practically never possibilities supply you a quality back – up three.going to be the range includes going

  23. Anonymous says:

    There ‘re so many v Cheap Nike Running arieties avai cheap nike running clothes lable in your athletic shoes as well as for a man and lots of women as part of your market These available on the web stores bring they all are popular brands.all your family

  24. Anonymous says:

    shapes, females.

    — When element comes to you for more information regard Chaussures Nike Free Run 3 ing handbags,Chaussures Nike Free Run 3,but take heart because it rea Chaussures nike air max 90 ches one historical earning you money all over the

  25. Anonymous says:

    your family will consider getting something that really suits your requirem Chaussures nike air max 90 ents best.all your family members can have a multi function little a good time Chaussures Nike Free Run 3 doing going to be the project,Chaussures nike

  26. Anonymous says:

    and that all Nike Free | Nike Air Max your family members are receiving your purchase back and forth from a reputable Nike Air Max seller that has to offer great customer services so that you have an all in one user cute website. watches, Great players

  27. Megan says:

    Pour un cluster french to english translation for a cluster

  28. Talker says:

    nice! give people a french link! (http://msdn.microsoft.com/fr-fr/library/cc280459.aspx ) nice!