<?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>Kerberos Authentication with IIS</title><link>http://blogs.msdn.com/darwin/archive/2005/10/28/486056.aspx</link><description>So you have decided to go with the delegation security model for your application. You have been developing all of the tiers of your application on your single development box where everything worked according to expectations. You have now separated all</description><dc:language>en-AU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Kerberos Authentication with IIS</title><link>http://blogs.msdn.com/darwin/archive/2005/10/28/486056.aspx#488369</link><pubDate>Wed, 02 Nov 2005 22:49:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:488369</guid><dc:creator>Roy Assaly</dc:creator><description>&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;Hi, &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;Thanks for this. I'm exactly in this situation. We've rummaged through all the help documents and used the test page you provided. And just like you said, the IIS servers returned: &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;"The Negotiate method was used! &lt;BR&gt;The user was logged on using NTLM." &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;The server that works returned Kerberos. But the problem server doesn't. Setspn is correct, but I'm worried about the app pools. &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;You see, on the same IIS server in question, someone is also using a web project that relies on kerberos delegation. They created a user on the domain, let's call it domain\specialuser and created a new app work pool, called specialpool and associated it using Setspn. Meantime, mine is still using the default app pool that is running under the default "NetworkService" account. We've already ran the cscript script. I'm now worried that the app pool is messing things up. Either that or someone messed around in the metafile. &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color=#7fffd4&gt;I've also verified that we are not running any proxies and that we are using FQDN.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If your web application URL is&amp;nbsp; &lt;A href="http://machinea/webappba"&gt;http://machinea/webappba&lt;/A&gt;, and the other party's web application URL is &lt;A href="http://machinea/webappb"&gt;http://machinea/webappb&lt;/A&gt;, provided that &lt;A href="http://machinea/webappb"&gt;http://machinea/webappb&lt;/A&gt; is correctly authenticating users via Kerberos, the following are simple options you can take that may resolve the matter:&lt;/P&gt;
&lt;P&gt;1) Run your web application under the same application pool as the third party, or&lt;BR&gt;2) Create your own application pool and set the identity to domain\specialuser.&lt;/P&gt;
&lt;P&gt;This is because the necessary SPNs are assigned to the domain\specialuser account which include:&lt;/P&gt;
&lt;P&gt;HTTP/machinea&lt;BR&gt;HTTP/&amp;lt;machinea FQDN&amp;gt;&lt;/P&gt;
&lt;P&gt;Keberos authentication will not work against &lt;A href="http://machinea"&gt;http://machinea&lt;/A&gt; unless the host process is running under the security context of domain\specialuser account.&lt;/P&gt;
&lt;P&gt;If you wish to maintain the application pool identity as Network Service, and require keberos authentication against your web application, arrange for a domain administrator to give the server an alternative different DNS designation. This is such that you may browse your web application with &lt;A href="http://specialdnsdesignation/webappa"&gt;http://specialdnsdesignation/webappa&lt;/A&gt; as well as &lt;A href="http://machinea/webappa"&gt;http://machinea/webappa&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The next step is to add the following SPNs to machinea account:-&lt;/P&gt;
&lt;P&gt;HTTP/specialdnsdesignation&lt;BR&gt;HTTP/&amp;lt;specialdnsdesignation FQDN&amp;gt;&lt;/P&gt;
&lt;P&gt;Hence, when you run setspn -l machinea the following must be the result:-&lt;/P&gt;
&lt;P&gt;HTTP/specialdnsdesignation&lt;BR&gt;HTTP/&amp;lt;specialdnsdesignation FQDN&amp;gt;&lt;BR&gt;HOST/machinea&lt;BR&gt;HOST/&amp;lt;machinea FQDN&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>3 Simple Rules to Kerberos Authentication/Delegation SPNs</title><link>http://blogs.msdn.com/darwin/archive/2005/10/28/486056.aspx#592256</link><pubDate>Mon, 08 May 2006 13:14:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:592256</guid><dc:creator>Blog du Tristank</dc:creator><description>The one where I try to boil Kerb down to three simple rules, and then decide that's probably impossible without sub-rules and perhaps a nine article series, and then get bored and go home.</description></item><item><title>Dog Training &amp;raquo; Kerberos Authentication with IIS</title><link>http://blogs.msdn.com/darwin/archive/2005/10/28/486056.aspx#8412181</link><pubDate>Sun, 20 Apr 2008 20:07:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8412181</guid><dc:creator>Dog Training &amp;raquo; Kerberos Authentication with IIS</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://dogs-pets.info/dog-training/?p=436"&gt;http://dogs-pets.info/dog-training/?p=436&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>