<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx</link><description>In this post, I focus on how NTLM and Kerberos are applied when connecting to SQL Server 2005 and try to explain the design behavor behind several common issues that customers frequently hit. On this page: Kerberos VS NTLM. Requirements for Kerberos and</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1261255</link><pubDate>Tue, 12 Dec 2006 00:45:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1261255</guid><dc:creator>DocCritic</dc:creator><description>&lt;p&gt;This is not a blog post.&lt;/p&gt;
&lt;p&gt;This is documentation.&lt;/p&gt;
</description></item><item><title>"Cannot Generate SSPI Context" error message, Poisoned DNS</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1397009</link><pubDate>Tue, 02 Jan 2007 11:18:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1397009</guid><dc:creator>SQL Protocols</dc:creator><description>&lt;p&gt;Incorrect DNS can lead to various network connectivity issues. In this post, I explain how it affects&lt;/p&gt;
</description></item><item><title>Also checkout KB925001</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1404456</link><pubDate>Wed, 03 Jan 2007 14:49:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1404456</guid><dc:creator>Joel Mansford</dc:creator><description>&lt;p&gt;I followed these instructions and couldn't work out why it worked then stopped working later. &amp;nbsp;I eventually discovered that it was due to a bug in SQL Server 2005 RTM + SS2005 SP1.&lt;/p&gt;
&lt;p&gt;The workaround of using Named Pipes for the connection between the linked servers works a treat and is much less hassle.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/sql_protocols/archive/2006/08/10/694657.aspx"&gt;http://blogs.msdn.com/sql_protocols/archive/2006/08/10/694657.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1607397</link><pubDate>Tue, 06 Feb 2007 02:59:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1607397</guid><dc:creator>ASE</dc:creator><description>&lt;p&gt;IF YOU WERE LOOKING FOR ONE HERE YOU GO..........The Axis StorPoint CD+ is a cd/dvd network storage server. This device is ideal for multiple users with workstations using different operating systems. It's a match made in heaven for IT departments, manufacturing, education and medical professionals.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://cm.ebay.com/cm/ck/1065-29296-2357-0?uid=121939807&amp;amp;site=0&amp;amp;ver=LCA080805&amp;amp;item=250080916580&amp;amp;lk=URL"&gt;http://cm.ebay.com/cm/ck/1065-29296-2357-0?uid=121939807&amp;amp;site=0&amp;amp;ver=LCA080805&amp;amp;item=250080916580&amp;amp;lk=URL&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1939286</link><pubDate>Sat, 24 Mar 2007 00:16:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1939286</guid><dc:creator>Andrew Fitch</dc:creator><description>&lt;p&gt;I'm running into an issue where a Windows Service that I wrote and runs as Local System tries to query my SQL 2005 DB on boot using Windows Authentication(SQL Express is the only dependency I have set) and I get a login failed error and it doesn't do what it is supposed to, but if I manually stop and start the service once the computer is booted it works fine, what other services are dependent in order to make this authenticate right away?&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#1953839</link><pubDate>Mon, 26 Mar 2007 21:47:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1953839</guid><dc:creator>John Gordon</dc:creator><description>&lt;p&gt;You will definitely need Lsass.exe to be running before Windows authentication (remote or otherwise) can be used. &amp;nbsp;I am unsure if you will need IIS to be running or not.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#3537816</link><pubDate>Tue, 26 Jun 2007 09:14:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3537816</guid><dc:creator>Sergey Krutous</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can the following configuration work:&lt;/p&gt;
&lt;p&gt;ASP.NET application works on domain machine, the application pool is running under domain account.Database is running on workgroup machine. I've configured local account with the same name and password (as domain account used by ASP.NET application).&lt;/p&gt;
&lt;p&gt;Still I get &amp;quot;Login failed for user '&amp;lt;account_name&amp;gt;'.&amp;quot; message.&lt;/p&gt;
&lt;p&gt;Can this configuration work? I understand that I need NTLM since the database is not in domain. What additional configuration is required for NTLM protocol? If it can not work at all can you shortly explain what step in NTLM authentication does not allow this?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Sergey.&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#6531069</link><pubDate>Mon, 26 Nov 2007 16:39:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6531069</guid><dc:creator>Christian vik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have domain users who try to access a website from XP client computers that are not a member of the domain.&lt;/p&gt;
&lt;p&gt;Internet Explorer -&amp;gt; IIS6 -&amp;gt; SQL Server 2005&lt;/p&gt;
&lt;p&gt;Is it possible to log in when double hop Kerberos is used?&lt;/p&gt;
&lt;p&gt;Currently it only works inside the domain. Outside it switches to NTLM and the user gets the &amp;quot;Login Failed for user 'NT Authority\ANONYMOUS' LOGON&amp;quot; error message.&lt;/p&gt;
&lt;p&gt;Is it possible to use NTLM and Named Pipes and use impersonated users all the way to the database?&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#6531089</link><pubDate>Mon, 26 Nov 2007 16:41:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6531089</guid><dc:creator>Christian Vik</dc:creator><description>&lt;p&gt;Just want to add that all users, inside and outside of the domain, uses the same hostname to access the site and that SPN has been set up.&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#7617583</link><pubDate>Mon, 11 Feb 2008 21:51:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7617583</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Can someone shed some light on the following error:&lt;/p&gt;
&lt;p&gt;NT Status: STATUS_LOGON_FAILURE (0xc000006d)&lt;/p&gt;
&lt;p&gt;Is this in anyway way related to a failed Kerberose authentication failure?&lt;/p&gt;
&lt;p&gt;We are seeing this from the client machine. &amp;nbsp;What would be the cause for this typically?&lt;/p&gt;
&lt;p&gt;We have been unable to resolve this error and have been unable to locate possible causes for this online.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9000243</link><pubDate>Wed, 15 Oct 2008 05:03:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9000243</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;We had a similar issue and we worked with Microsoft and they determined that our DBA installed SQL Server not under the default SA account but under a different user. &amp;nbsp;We had to make a custom SPN because the one that SQL installed didn't work.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.teamofcoders.com"&gt;http://www.teamofcoders.com&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Troubleshooting Error: 18452 Login failed for user</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9167778</link><pubDate>Wed, 03 Dec 2008 05:29:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9167778</guid><dc:creator>Troubleshooting Microsoft SQL Server</dc:creator><description>&lt;p&gt;Error: 18452 Login failed for user ‘null‘ , … • “Null” or ‘’ means that client windows token is not trusted&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9440692</link><pubDate>Mon, 23 Feb 2009 01:48:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9440692</guid><dc:creator>Sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a stand-alone(not connected to any domain) 64 bit machine with Windows Server 2008 Enterprise SP1.&lt;/p&gt;
&lt;p&gt;On this machine I have SQL Server 2008 enterprise edition version 10.0.1600.22 &amp;nbsp;64-bit default instance. &amp;nbsp;It is running under 'LocalSystem' account. The authetication is 'mixed' mode.&lt;/p&gt;
&lt;p&gt;when the SQL server service starts, it gives the following message, which is fine.&lt;/p&gt;
&lt;p&gt; &amp;quot;The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. 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.&amp;quot;&lt;/p&gt;
&lt;p&gt;Then when I try to login through SQL server management studio (from the same machine) using windows authentication, I get the following error:&lt;/p&gt;
&lt;p&gt;&amp;quot;Login failed for user 'mymachinename\Administrator'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: &amp;lt;named pipe&amp;gt;]&amp;quot;&lt;/p&gt;
&lt;p&gt;I have only 'named pipe' enabled as a protocol. I have used &amp;quot;net view \\server&amp;quot; command to verify that NTLM is working fine.&lt;/p&gt;
&lt;p&gt;What could be the problem here? is NTLM fallback not working? &lt;/p&gt;
&lt;p&gt;Any help or pointers will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9444715</link><pubDate>Thu, 26 Feb 2009 01:56:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9444715</guid><dc:creator>SQL Protocols</dc:creator><description>&lt;p&gt;Sam, &lt;/p&gt;
&lt;p&gt;NTLM is used here. The error message about SPN is normal. The errorlog should contain more details about the login failure, then you can refer this blog to find out more. &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx"&gt;http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Xinwei&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9498459</link><pubDate>Sun, 22 Mar 2009 16:41:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9498459</guid><dc:creator>Uri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm new to SQL Server and NTLM.&lt;/p&gt;
&lt;p&gt;The IT installed a device that capture all the trafic to the SQL Server.&lt;/p&gt;
&lt;p&gt;They told me to change the SQL Server Agent Job to use this device (from security reasons).&lt;/p&gt;
&lt;p&gt;When I changed the SQL Server Agent Job (using the alias property) it failed with the error: &amp;quot;Login failed for user ''. The user is not ...&lt;/p&gt;
&lt;p&gt;Even though that the SQL Server Agent Job and the SQL Server are on the same machine (I just route the network to use the new device).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Uri&lt;/p&gt;
</description></item><item><title>SQL Server Security Links</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9510982</link><pubDate>Thu, 26 Mar 2009 17:43:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9510982</guid><dc:creator>Carpe Datum</dc:creator><description>&lt;p&gt;I was asked yesterday about sharing my security links for SQL Server, so I thought I would post those&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9842964</link><pubDate>Tue, 21 Jul 2009 10:03:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9842964</guid><dc:creator>Bakki</dc:creator><description>&lt;p&gt;I am new to MS SQL and NTLM protocol. I want to know which version of the SQL server jdbc driver file supports NTLM authentication and what is the syntax for using it.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9843004</link><pubDate>Tue, 21 Jul 2009 10:31:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9843004</guid><dc:creator>Sumo</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://aspdotnetexpert.blogspot.com/2008/06/login-failed-for-user-sa-reason-not.html"&gt;http://aspdotnetexpert.blogspot.com/2008/06/login-failed-for-user-sa-reason-not.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9853905</link><pubDate>Fri, 31 Jul 2009 03:42:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853905</guid><dc:creator>tangrl</dc:creator><description>&lt;p&gt;I try to setup Kerberos delegation from a Web Server (IIS 6.0) to a SQL Server (2005). I had success before but this time is different: the Windows users and the Servers are in different domains! I don't know if it can still be done. Here is the situation:&lt;/p&gt;
&lt;p&gt;1. All servers are in Domain1. So Web server is Domain1\Machine1 and the SQL Server is Domain1\Machine2.&lt;/p&gt;
&lt;p&gt;2. All Users are in Domain2.&lt;/p&gt;
&lt;p&gt;3. Domain2 is one-way trusted to Domain1. So Users in Domain2 can see Domain1, not the other way around.&lt;/p&gt;
&lt;p&gt;4. The ASP.Net web site is running under account Domain2\UserA.&lt;/p&gt;
&lt;p&gt;5. The SQL Server is running user account Domain2\UserB.&lt;/p&gt;
&lt;p&gt;6. All application users are from Domain2.&lt;/p&gt;
&lt;p&gt;Can I run the following command to setup a SPN?&lt;/p&gt;
&lt;p&gt;setspn -A MSSQLSvc/Machine2.xyz.com domain2\UserB &lt;/p&gt;
&lt;p&gt;Can I run the command on the SQL Server?&lt;/p&gt;
&lt;p&gt;In which domain the SPN will be created?&lt;/p&gt;
&lt;p&gt;And the big question: Can the application Users from Domain2 be delegated all the way to the SQL Server?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Richard.&lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9865019</link><pubDate>Wed, 12 Aug 2009 00:41:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865019</guid><dc:creator>Rogerio Torres</dc:creator><description>&lt;p&gt;I tried realize that in SQl Server 2000 down AD with function level Windowns 2000, and I don't get success result. &lt;/p&gt;
</description></item><item><title>re: Understanding Kerberos and NTLM authentication in SQL Server Connections</title><link>http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx#9934707</link><pubDate>Wed, 09 Dec 2009 18:03:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9934707</guid><dc:creator>Ryan</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;NP Connection&amp;quot;? &amp;nbsp;It's mentioned a few times in the article, but it never defined.&lt;/p&gt;
</description></item></channel></rss>