<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sql Server and SSPI handshake failed error hell</title>
	<atom:link href="http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/</link>
	<description>SQL Server, PASS, and other data mishaps</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:21:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Robert L Davis</title>
		<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/comment-page-1/#comment-356</link>
		<dc:creator>Robert L Davis</dc:creator>
		<pubDate>Tue, 29 Jun 2010 17:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/#comment-356</guid>
		<description>I agree about the reboot. That&#039;s why I check SPN&#039;s before DC/Kerberos errors. An SPN can be fixed without rebooting, but if the issue is DC connection and no one can log in to the SQL Server, you&#039;re down anyway so a reboot shouldn&#039;t be out of the question.

The problem with having a bad SPN configured is that it will cause the connection attempt to fail outright rather than falling back to kerberos. So you don&#039;t have to configure the server for kerberos for kerberos to bite you in the back-end.

Many times, this happens accidentally because Local System has permissions to create its own SPN. If you change the SQL Server service account from local system to a different account via SSCM without stopping the SQL Server service first, it will often not delete the SPN that Local System created. This leaves an invalid SPN in AD. I see this a lot.</description>
		<content:encoded><![CDATA[<p>I agree about the reboot. That&#8217;s why I check SPN&#8217;s before DC/Kerberos errors. An SPN can be fixed without rebooting, but if the issue is DC connection and no one can log in to the SQL Server, you&#8217;re down anyway so a reboot shouldn&#8217;t be out of the question.</p>
<p>The problem with having a bad SPN configured is that it will cause the connection attempt to fail outright rather than falling back to kerberos. So you don&#8217;t have to configure the server for kerberos for kerberos to bite you in the back-end.</p>
<p>Many times, this happens accidentally because Local System has permissions to create its own SPN. If you change the SQL Server service account from local system to a different account via SSCM without stopping the SQL Server service first, it will often not delete the SPN that Local System created. This leaves an invalid SPN in AD. I see this a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allen Kinsel</title>
		<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/comment-page-1/#comment-355</link>
		<dc:creator>Allen Kinsel</dc:creator>
		<pubDate>Tue, 29 Jun 2010 16:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/#comment-355</guid>
		<description>I guess should have worded that a little differently, in my experience in a lot of environments kerberos isnt used since its not configured, so it always falls back to NTLM, with only NTLM and no Kerberos in the result list, its usually safe to say that SPN&#039;s arent the issue.  

I would agree with your troubleshooting steps for Kerb issues, the problem is since many people dont use kerb, its the NTLM SSPI errors that cause the grief, and just reboting a SQL Server outside of the SLA is very nearly impossible (at least in our environment)</description>
		<content:encoded><![CDATA[<p>I guess should have worded that a little differently, in my experience in a lot of environments kerberos isnt used since its not configured, so it always falls back to NTLM, with only NTLM and no Kerberos in the result list, its usually safe to say that SPN&#8217;s arent the issue.  </p>
<p>I would agree with your troubleshooting steps for Kerb issues, the problem is since many people dont use kerb, its the NTLM SSPI errors that cause the grief, and just reboting a SQL Server outside of the SLA is very nearly impossible (at least in our environment)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NULLgarity</title>
		<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/comment-page-1/#comment-354</link>
		<dc:creator>NULLgarity</dc:creator>
		<pubDate>Thu, 24 Jun 2010 17:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/#comment-354</guid>
		<description>This post should win an award.  These SSPI errors have cause me all sorts of trouble over the years and are EXTREMELY difficult to troubleshoot.  In my experience, they often went away before I even had a chance to look into them.  Thanks for the post!</description>
		<content:encoded><![CDATA[<p>This post should win an award.  These SSPI errors have cause me all sorts of trouble over the years and are EXTREMELY difficult to troubleshoot.  In my experience, they often went away before I even had a chance to look into them.  Thanks for the post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Melton</title>
		<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/comment-page-1/#comment-349</link>
		<dc:creator>Shawn Melton</dc:creator>
		<pubDate>Thu, 17 Jun 2010 19:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/#comment-349</guid>
		<description>It&#039;s been a while since I have done SA duties with AD but I would be curious too.  I actually have a User Group meeting tonight (06/17/10) with an MCT that teaches AD and will ask him if he can explain that authentication mess.</description>
		<content:encoded><![CDATA[<p>It&#8217;s been a while since I have done SA duties with AD but I would be curious too.  I actually have a User Group meeting tonight (06/17/10) with an MCT that teaches AD and will ask him if he can explain that authentication mess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert L Davis</title>
		<link>http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/comment-page-1/#comment-348</link>
		<dc:creator>Robert L Davis</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2010/06/sql-server-and-sspi-handshake-failed-error-hell/#comment-348</guid>
		<description>sys.dm_exec_connections does not tell you what protocol they used to attempt their connection. It tells you which protocol suceeded. Kerberos is ALWAYS tried first and NTLM is used as a failback. So if they show as using NTLM, it&#039;s not because they didn&#039;t attempt to use Kerberos, its because Kerberos wasn&#039;t successful.

In my experience, 98% of all SSPI errors are caused by either an invalid SPN or a failure connecting to the domain controller. The first 2 troubleshooting steps should be:

1. Validate the SPN&#039;s. No SPN&#039;s is fine. Just make sure that any existing SPN&#039;s are valid.
2. Check the System Event Log for Kerberos errors or errors stating failures to contact the DC.

If there are invalid SPN&#039;s delete them. If you have DC/kerberos errors, reboot the SQL Server.</description>
		<content:encoded><![CDATA[<p>sys.dm_exec_connections does not tell you what protocol they used to attempt their connection. It tells you which protocol suceeded. Kerberos is ALWAYS tried first and NTLM is used as a failback. So if they show as using NTLM, it&#8217;s not because they didn&#8217;t attempt to use Kerberos, its because Kerberos wasn&#8217;t successful.</p>
<p>In my experience, 98% of all SSPI errors are caused by either an invalid SPN or a failure connecting to the domain controller. The first 2 troubleshooting steps should be:</p>
<p>1. Validate the SPN&#8217;s. No SPN&#8217;s is fine. Just make sure that any existing SPN&#8217;s are valid.<br />
2. Check the System Event Log for Kerberos errors or errors stating failures to contact the DC.</p>
<p>If there are invalid SPN&#8217;s delete them. If you have DC/kerberos errors, reboot the SQL Server.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

