<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ugh!!'s Greymatter Honeypot &#187; SPN</title>
	<atom:link href="http://www.u-g-h.com/tag/spn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.u-g-h.com</link>
	<description>Distracting the Mind with Information Overload</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:39:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Integrated Windows Authentication &#8211; How to set up</title>
		<link>http://www.u-g-h.com/2006/05/11/integrated-windows-authentication-how-to-set-up/</link>
		<comments>http://www.u-g-h.com/2006/05/11/integrated-windows-authentication-how-to-set-up/#comments</comments>
		<pubDate>Thu, 11 May 2006 11:06:52 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SPN]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.u-g-h.com/PermaLink,guid,fe4578dc-01ba-4a5e-bb75-f094e0b3abf0.aspx</guid>
		<description><![CDATA[We&#8217;ve spent this morning struggling with IIS, trying to get Integrated Authentication working. You would think that it&#8217;s just a matter of switching IIS Settings and making sure that the calling user has got permission to the folder and files that need to be called. If only life were that simple!! It turns out that [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve spent this morning struggling with IIS, trying to get Integrated Authentication working. You would think that it&#8217;s just a matter of switching IIS Settings and making sure that the calling user has got permission to the folder and files that need to be called. If only life were that simple!!</p>
<p>It turns out that is your application pool is running under any other user besides &#8220;Network Service&#8221;, authenticating the user doesn&#8217;t work. The user will keep getting prompted with a login prompt regardless of whether correct credentials are supplied or not. At this point we downloaded and installed <a  href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e90fe777-4a21-4066-bd22-b931f7572e9a&#038;DisplayLang=en">AuthDiag</a> to<br />
get a better idea what was going on. <a  href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e90fe777-4a21-4066-bd22-b931f7572e9a&#038;DisplayLang=en">AuthDiag</a> is a pretty slick tool that lets you troubleshoot authentication problems in IIS. It&#8217;s a definite must-have in any developer/infrastucture bod&#8217;s arsenal. <a  href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e90fe777-4a21-4066-bd22-b931f7572e9a&#038;DisplayLang=en">AuthDiag</a> came back with:</p>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr"><p><strong>Service principal name (SPN) for user &#8216;&lt;user&gt;&#8217; not found in Active Directory</strong></p></blockquote>
<p>which was the first time I&#8217;ve ever heard of an SPN. The reported user above was the user that the Application Pool was running under. (We had previously tried to make the AppPool user a Domain Admin and a Local Admin, but were still failing authentication.)</p>
<p>Anyway, some research on SPNs led to a couple of interesting articles:</p>
<ul>
<li> <a  href="http://support.microsoft.com/kb/326985">HOWTO: Troubleshoot Kerberos-Related Issues in IIS</a></li>
<li> <a  href="http://technet2.microsoft.com/WindowsServer/en/Library/579246c8-2e32-4282-bce7-3209d1ea8bf11033.mspx?mfr=true">Service Logons Fail Due to Incorrectly Set SPNs</a></li>
<li> <a  href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerbdel.mspx">Troubleshooting Kerberos Delegation</a></li>
</ul>
<p>Turns out that an SPN is a unique identifier required for any service that makes use of Kerberos. The SPN is assigned to the account under which the service the SPN identifies is running. The problem is caused by the fact that IIS creates SPNs for itself on installation, but these only work for &#8220;Network Service&#8221; and &#8220;Local System&#8221;. In the end we had to create our own SPNs using the <a  href="http://technet2.microsoft.com/WindowsServer/en/Library/b3a029a1-7ff0-4f6f-87d2-f2e70294a5761033.mspx?mfr=true">setspn</a> command-line tool (under Support Tools)</p>
<p>Turns out there&#8217;s a KB Article that talks about this problem and it&#8217;s resolution (and a workaround -&gt; turn off Kerberos): <a  href="http://support.microsoft.com/default.aspx?scid=kb;en-us;871179">You receive an &#8220;HTTP Error 401.1 &#8211; Unauthorized: Access is denied due to invalid credentials&#8221;<br />
error message when you try to access a Web site that is part of an IIS 6.0 application pool</a></p>
<p><a  class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.u-g-h.com%2F2006%2F05%2F11%2Fintegrated-windows-authentication-how-to-set-up%2F&#038;title=Integrated%20Windows%20Authentication%20%26%238211%3B%20How%20to%20set%20up" id="wpa2a_2"><img src="http://www.u-g-h.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.u-g-h.com/2006/05/11/integrated-windows-authentication-how-to-set-up/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

