<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx</link><description>Hi Rob here again. I hope that you found the first blog on troubleshooting Kerberos Authentication problems caused by name resolution informative and learned something about how to review network captures as well as how the SMB protocol works at a high</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3374156</link><pubDate>Thu, 09 Dec 2010 16:52:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3374156</guid><dc:creator>Lakshmi J</dc:creator><description>&lt;p&gt;Thank You!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3374156" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3373925</link><pubDate>Wed, 08 Dec 2010 17:47:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3373925</guid><dc:creator>greener85</dc:creator><description>&lt;p&gt;Please do the action plan that Ned is listing out. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;But also, think about what happened just prior to that time of deletion. &amp;nbsp;Also I have a question for you. &amp;nbsp;This SQL Instance where the SPN is getting deleted. &amp;nbsp;Is this possibly a SQL Cluster?&lt;/p&gt;
&lt;p&gt;There is a known issue with SQL Cluster when it fails over, it will delete the SPN on the node that is stopping. &amp;nbsp;When this is done, the domain controller removes the SPN. &amp;nbsp;Then the starting node will register the SPN. &amp;nbsp;So as you can see there is a possibility that the nodes are communicating with two different domain controllers in the AD site. &amp;nbsp;Thus last writer wins when AD replication happens.&lt;/p&gt;
&lt;p&gt;If the last writer just happens to be the node that is stopping for some reason, you get a servicePrincipalName attribute that is missing your required MSSQLSvc SPN.&lt;/p&gt;
&lt;p&gt;Also, starting in Windows Vista/2008 and higher, the Terminal Service will also register its SPN at at start. &amp;nbsp;If this only happens when the computer restarts, then it could be a similar situation as above. &amp;nbsp;SQL registers the SPN against DC1, then TermServ is registered against DC2. &amp;nbsp;Last writer wins, and the ServicePrincipalName attribute on DC2 did not include the MSSQLSvc SPN and thus it is not there when AD replication happens.&lt;/p&gt;
&lt;p&gt;Rob Greene&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3373925" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3373845</link><pubDate>Wed, 08 Dec 2010 14:21:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3373845</guid><dc:creator>NedPyle [MSFT]</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Start by running REPADMIN.EXE /SHOWMETA &amp;lt;DN of that object getting its SPN&amp;#39;s deleted&amp;gt; after the SPN is deleted *but before you fix the SPN*. This will tell you when the deletion happened and from which DC it originated. If you do this a couple times and find that it&amp;#39;s always the same DC, you&amp;#39;d want to investigate for a script or other process running on that server, as well as the computers running in that DC&amp;#39;s site. You should also enable DS Access Auditing and set auditing security entries on that object to perhaps see if there&amp;#39;s an associated account doing it everytime; that might give more clues.&lt;/p&gt;
&lt;p&gt;I agree that the advice you got from those SQL conference people is likely mistaken. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3373845" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3373596</link><pubDate>Tue, 07 Dec 2010 16:33:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3373596</guid><dc:creator>Lakshmi J</dc:creator><description>&lt;p&gt;Hi :&lt;/p&gt;
&lt;p&gt;Great Post. How do we resolve a missing SPN issue ( We create the SPN but they get deleted randomly)&lt;/p&gt;
&lt;p&gt;Here is the issue raised by our SQL folks:&lt;/p&gt;
&lt;p&gt;=============================================================================================&lt;/p&gt;
&lt;p&gt;SPN entries getting repeatedly deleted from AD . When I was in Seattle at the SQL Server user group conference, I brought this issue up with several engineers from Microsoft, who said it was most likely an AD container sync problem. &lt;/p&gt;
&lt;p&gt;==============================================================================================&lt;/p&gt;
&lt;p&gt;Our AD infrastructure is pretty healthy and i am unable to see how this is a sync issue.&lt;/p&gt;
&lt;p&gt;Thanks for the Help&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Lakshmi &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3373596" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3247270</link><pubDate>Fri, 29 May 2009 00:01:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3247270</guid><dc:creator>jsmith</dc:creator><description>&lt;p&gt;Rob,&lt;/p&gt;
&lt;p&gt;Your suggestion about using msds-additionalDnsHostName solved the problem. &amp;nbsp;Thanks for your expertise and help!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3247270" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3239893</link><pubDate>Tue, 12 May 2009 21:09:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3239893</guid><dc:creator>greener85</dc:creator><description>&lt;p&gt;Hey JSmith,&lt;/p&gt;
&lt;p&gt;So I did some testing today. &amp;nbsp;Here is how you should be able to make this work on your domain controller.&lt;/p&gt;
&lt;p&gt;Launch ADSIEdit.msc and select the properties of the domain controller. &amp;nbsp;You will want to add the other DNS name to the following attribute on the DC Computer object.&lt;/p&gt;
&lt;p&gt;msds-additionalDnsHostName&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3239893" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3239266</link><pubDate>Tue, 12 May 2009 01:42:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3239266</guid><dc:creator>greener85</dc:creator><description>&lt;p&gt;Hey JSmith,&lt;/p&gt;
&lt;p&gt;First let me say thank you for the kind remarks from all of us here that write content for AskDS.&lt;/p&gt;
&lt;p&gt;So I think I know at some level what might be happening to you. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think that Netlogon on the domain controller is writing or doing something with the DNSHostName attribute on the domain controller computer account in Active Direcotry.&lt;/p&gt;
&lt;p&gt;So I worked this case one time, where the customer thought it would be cool to change the computers DNS suffix based on the AD site that they belonged to which caused what we call a Disjointed name space on for the client machines.&lt;/p&gt;
&lt;p&gt;When a computer boots up it checks the DNSHostName attribute on the account. &amp;nbsp;If the name does not reflect the current DNS suffix on the machine it changes it. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then later in LSASS code on the domain controller it will go through and change the Service Principal Name attributes to match the DNSHostName attribute. &amp;nbsp;Since this is a domain controller it is going to re-write all service names and delete ones that should not be there.&lt;/p&gt;
&lt;p&gt;I am currently not sure why we would be writing these values back if the name is not changing. &amp;nbsp;However there is some very specific code in LSASS in regards to domain controllers that you might be seeing this behavior. &amp;nbsp;Another thought that a coworker had is that the KCC might be causing this since it does run every 15 minutes.&lt;/p&gt;
&lt;p&gt;Thinking about your problem, you might try to use the optionalNames registry key on the domain controller. &amp;nbsp;I am not positive if this will resolve the issue or not but you might want to give it a try.&lt;/p&gt;
&lt;p&gt;891607	The supported method of using the OptionalNames registry entry on a computer that is running Windows 2000 or Windows Server 2003&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://vkbexternal/VKBWebService/ViewContent.aspx?scid=KB;EN-US;891607"&gt;http://vkbexternal/VKBWebService/ViewContent.aspx?scid=KB;EN-US;891607&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Rob Greene&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3239266" width="1" height="1"&gt;</description></item><item><title>re: Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 1</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3237830</link><pubDate>Fri, 08 May 2009 21:43:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3237830</guid><dc:creator>jsmith</dc:creator><description>&lt;p&gt;Thanks for making a difficult subject understandable. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you set a spn on a domain controller? &amp;nbsp;No matter what I do, ADSIedit or Setspn, in about 15 minutes or a reboot, the DC removes the entries. &lt;/p&gt;
&lt;p&gt;We have a CNAME record &amp;quot;ldap&amp;quot; pointing to a domain controller DNS A record. &amp;nbsp;This is because we don't want our many developers explicitly using a domain controller hostname in their code. &amp;nbsp;When I create &amp;quot;ldap/ldap&amp;quot; and &amp;quot;ldap/ldap.mydomain.com&amp;quot;, the ldap queries successfully use Kerberos. &amp;nbsp;However, after a few minutes, the DC removes the SPN's and then the queries fall back to NTLM. &amp;nbsp;I thought maybe the &amp;quot;ldap/ldap&amp;quot; or &amp;quot;ldap/ldap.mydomain.com&amp;quot; was special so I simply created a &amp;quot;host/tobeornottobe&amp;quot;, rebooted, and the dc removed it. &amp;nbsp;Any suggestions?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3237830" width="1" height="1"&gt;</description></item><item><title>Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 3</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3069593</link><pubDate>Wed, 11 Jun 2008 21:30:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3069593</guid><dc:creator>Ask the Directory Services Team</dc:creator><description>&lt;p&gt;Now we have seen what it looks like when there is no Service Principal Name defined , and when the Service&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3069593" width="1" height="1"&gt;</description></item><item><title>Kerberos Authentication problems – Service Principal Name (SPN) issues - Part 2</title><link>http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx#3068359</link><pubDate>Mon, 09 Jun 2008 20:35:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3068359</guid><dc:creator>Ask the Directory Services Team</dc:creator><description>&lt;p&gt;So, we saw in Part 1 what kind of error you could expect when there is no Service Principal Name defined&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3068359" width="1" height="1"&gt;</description></item></channel></rss>