<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx</link><description>Note: All of your Kerberos configuration questions can be answered by using the DelegConfig tool that I wrote. You can find that tool here Literally 99% of all Kerberos problems revolve around an incorrect, missing, or duplicate ServicePrincipalName </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2842966</link><pubDate>Fri, 02 Jan 2009 15:09:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2842966</guid><dc:creator>brian-murphy-booth</dc:creator><description>&lt;p&gt;David Reilly,&lt;/p&gt;
&lt;p&gt;If the problem you are seeing effects only a particular user or perhaps a limited set of users, my first guess would be that they are part of too many groups. What I think I'd do first though is enable Kerberos logging on the client to see if that provides any clues.&lt;/p&gt;
&lt;p&gt;A kerberos ticket contains all the security information about a user so the more groups a user is part of, the bigger the ticket gets. Eventually the user's workstation will block the ticket as being too big. I believe you'd want to increate the &amp;quot;MaxTokenSize&amp;quot; registry entry on the client if that's what is causing your problem. My guess on the intermittency of the problem may be that group membership changes are performed frequently and the user's ticket size fluctuates? My second guess on the cause of the problem is that during the ticket renewal there is a networking problem so the user doesn't get a ticket.&lt;/p&gt;
&lt;p&gt;In either case, perhaps Kerberos logging will lead you to the solution.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2842966" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2781837</link><pubDate>Wed, 03 Dec 2008 10:12:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2781837</guid><dc:creator>David Reilly</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been encountering a Kerberos issue that has me a bit puzzeled. &amp;nbsp;I have used your delegconfig to assist with configuring SPN&amp;#39;s and that helped identify config issues very clearly thank you!&lt;/p&gt;
&lt;p&gt;I believe our DNS and SPN&amp;#39;s and Kerberos config looks good now and works fine most of the time. &amp;nbsp;However from time to time we see an XP client loosing all Kerberos tickets and/or not being granted any and the client defaults back to NTLM thereafter. &amp;nbsp;Both Kerbtray and Klist confirm this. &amp;nbsp;The only way for us to get Kerberos working on the client again is a full reboot. &amp;nbsp;I&amp;#39;m at a loss as to what may cause this behaviour and why a reboot is required to fix. &amp;nbsp;I would be grateful for your expert opinion or suggestion on this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;David Reilly&lt;/p&gt;
&lt;p&gt;Dublin, Ireland&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2781837" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2684813</link><pubDate>Wed, 15 Oct 2008 15:18:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2684813</guid><dc:creator>Olaf Gradin</dc:creator><description>&lt;p&gt;So what about when the log shows signs of a duplicate, but (now) three methods come up empty with the duplicate record? &amp;nbsp;How frustrating is that?&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2684813" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2552280</link><pubDate>Tue, 12 Aug 2008 10:59:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2552280</guid><dc:creator>Donna Kelly</dc:creator><description>&lt;p&gt;(from AndyIIS)&lt;/p&gt;
&lt;p&gt;&amp;quot;If I start a new browser session and go to myserver.mydomain.com/Kerberos I get a username/password login box. Without authenticating, I go to &lt;a rel="nofollow" target="_new" href="http://MyServer/Kerberos/"&gt;http://MyServer/Kerberos/&lt;/a&gt; and the page loads &amp;quot;&lt;/p&gt;
&lt;p&gt;I hope I&amp;#39;m not teaching Grandma to suck eggs, but I did notice that myserver.mydomain has a period in it. &amp;nbsp;As I understand it, IE will by default assume that any URL with a period in it is in the Internet zone, and will not attempt to pass any form of credentials, including Kerberos. &amp;nbsp;You then get that pesky modal dialog box asking for credentials. &amp;nbsp;The resolution is to put myserver.mydomain in the list of Intranet sites (Internet Options -&amp;gt; Security tab -&amp;gt; Local Intranet -&amp;gt; Sites -&amp;gt; Advanced). &amp;nbsp;IE will then submit the client credentials.&lt;/p&gt;
&lt;p&gt;Also, to get WrkstaInfo to load, could you check your vDir execute permissions in IIS? &amp;nbsp;The .dll only functioned properly for me when the permissions were set to Scripts Only (rather than Scripts and Executables).&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Donna &amp;nbsp;&lt;/p&gt;
&lt;p&gt;p.s. I removed the apostrophe from the title of this thread :-)&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2552280" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2382945</link><pubDate>Tue, 27 May 2008 12:59:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2382945</guid><dc:creator>brian-murphy-booth</dc:creator><description>&lt;p&gt;When it comes to Kerberos, name resolution is very important. In particular, name resolution on the &amp;quot;client&amp;quot; is important. That is because the SPN that the client requests is based on the name that the client determines during a reverse DNS lookup. So to make DelegConfig more accurate I wrote a C# assembly that runs inside IE. It simply does that reverse lookup then appends &amp;quot;resolvedName=whatever&amp;quot; to the URL. That way the server-side code of DelegConfig understands what the client came up with on the reverse lookup. Unfortunately, IE security more often than not, blocks the loading of that C# &amp;quot;activeX control&amp;quot;. So you have to manually determine the name that the client comes up with. In regards to you being redirected from the FQDN back to the NetBIOS name... that sounds like a bug in my redirect logic.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2382945" width="1" height="1"&gt;</description></item><item><title>DelegConfig - A Tool To help resolve Kerberos authentication and delegation issues</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2316832</link><pubDate>Wed, 23 Apr 2008 17:15:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2316832</guid><dc:creator>Useful IIS/ASP.NET Information provided by Microsoft Support Teams</dc:creator><description>&lt;p&gt;Overview I wanted to create this blog to address one of the IIS Support teams top support issues. The&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2316832" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2291534</link><pubDate>Fri, 11 Apr 2008 11:07:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2291534</guid><dc:creator>AndyIIS</dc:creator><description>&lt;p&gt;Thank you for the tool - it definitely helped me to diagnose my problem.&lt;/p&gt;
&lt;p&gt;However (isn&amp;#39;t there always...), I have found some interesting issues with authentication/Kerberos in my domain. The problem exhibits itself on all websites running on the webserver, including your DelegConfig tool. &lt;/p&gt;
&lt;p&gt;[Background: the webserver is Server 2003 running IIS6; client browser is IE7 running on XP Professional SP2; all clients, workstations and servers are members of the same domain, a Windows 2003 domain running in Windows 2000 native mode. The website is set to Integrated Windows Authentication only, and NTAuthenticationProviders is set to &amp;quot;Negotiate&amp;quot;.]&lt;/p&gt;
&lt;p&gt;To summarise: I can start a new browser session, go to &lt;a rel="nofollow" target="_new" href="http://MyServer/Kerberos/"&gt;http://MyServer/Kerberos/&lt;/a&gt; and the page loads, but DelegConfig complains &amp;quot;This tool is unable to verify that the proper SPNs are set because the WrkstaInfo.dll C# ActiveX control failed to load in Internet Explorer&amp;quot;. If I add &amp;quot;resolvedName=MyServer&amp;quot;, everything works fine. Any idea why adding &amp;quot;MyServer&amp;quot; to the resolvedName helps, when I am already browsing to the exact same server name?&lt;/p&gt;
&lt;p&gt;If I start a new browser session and go to &lt;a rel="nofollow" target="_new" href="http://MyServer.MyDomain.com/Kerberos/"&gt;myserver.mydomain.com/Kerberos&lt;/a&gt; I get a username/password login box. Without authenticating, I go to &lt;a rel="nofollow" target="_new" href="http://MyServer/Kerberos/"&gt;http://MyServer/Kerberos/&lt;/a&gt; and the page loads (but with same ActiveX error); I then go back to the FQDN page and everything works, including the SPN lookup!&lt;/p&gt;
&lt;p&gt;As an attempted fix, I have created 2 new SPNs for NT AUTHORITY\NETWORK SERVICE, called HTTP/MyServer and HTTP/MyServer.MyDomain.com, but the strange behaviour remains. There were already 2 &amp;quot;HOST&amp;quot; SPNs, and the Application Pool Identity is NETWORK SERVICE, so this probably hasn&amp;#39;t made any difference.&lt;/p&gt;
&lt;p&gt;I fully accept that there might be some strange DNS happenings, but I cannot fathom why when first going to the FQDN I am refused all access, then going to just the ServerName gets me some access, and then returning to the FQDN gets me full access (all without entering any usernames/passwords).&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2291534" width="1" height="1"&gt;</description></item><item><title>DelegConfig - A Tool To help resolve Kerberos authentication and delegation issues</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2282148</link><pubDate>Mon, 07 Apr 2008 22:00:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2282148</guid><dc:creator>Bret Bentzinger's Blog</dc:creator><description>&lt;p&gt;Overview I wanted to create this blog to address one of the IIS Support teams top support issues. The&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2282148" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2223717</link><pubDate>Mon, 10 Mar 2008 19:46:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2223717</guid><dc:creator>brian-murphy-booth</dc:creator><description>&lt;p&gt;I'm not really sure how you can have a CIFS service on a domain user so I would start by deleting that one. CIFS is a built in service for the OS. Or if the front-end service is IIS then you can try running my DelegConfig tool that I have mentioned at the top of this blog.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2223717" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2223405</link><pubDate>Mon, 10 Mar 2008 17:37:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2223405</guid><dc:creator>Marco D'Amico</dc:creator><description>&lt;p&gt;Hi, thanks for the this nice &amp;quot;documentation&amp;quot;! I have a related question: I found out that I have a duplicated SPN. The problem I have is that I don&amp;#39;t know which one I have to delete. Everything began with these 2 errors:&lt;/p&gt;
&lt;p&gt;&amp;quot;There are multiple accounts with name cifs/ipl-sbs.ipl.lan of type DS_SERVICE_PRINCIPAL_NAME.&amp;quot; and &lt;/p&gt;
&lt;p&gt;&amp;quot;There are multiple accounts with name cifs/IPL-SBS of type DS_SERVICE_PRINCIPAL_NAME.&amp;quot;&lt;/p&gt;
&lt;p&gt;After searching the duplicates using ldp, I found 2 enries: one is the HOST named IPL-SBS that is our domaincontroler and the second is the our DomainAdmin user. Which SPN can I remove? It&amp;#39;s perhaps a stupid question, but I&amp;#39;m novice in this area... THANK, Marco&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2223405" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2184522</link><pubDate>Wed, 20 Feb 2008 14:06:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2184522</guid><dc:creator>brian-murphy-booth</dc:creator><description>&lt;p&gt;hitter - If you want to use Kerberos and NLB then you cannot use a built-in account. You must use a domain user as your AppPool identity. This is because Kerberos revolves around SPN's and a given SPN can only exist on a single AD account.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2184522" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2184514</link><pubDate>Wed, 20 Feb 2008 14:03:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2184514</guid><dc:creator>brian-murphy-booth</dc:creator><description>&lt;p&gt;Short answer - There is a duplicate SPN.&lt;/p&gt;
&lt;p&gt;Long answer - When a client asks for a ticket it just says &amp;quot;give me a ticket for HTTP/mywebsite.com&amp;quot;. Active Directory searches through its accounts for that exact SPN. If it can't find it then it searches again for &amp;quot;HOST/mywebsite.com&amp;quot; instead. Let's say AD finds the SPN it is looking for on MYDOMAIN\web01$. It creates a ticket and then encrypts it with web01$'s NTLM hashed password. The client gets the ticket and sends it off to the web server. Let's say your web site is running under an AppPool Identity of MYDOMAIN\myserviceaccount. Well... we try to decrypt the ticket using the NTLM hashed password of myserviceaccount since that's what the w3wp.exe process knows about. But that fails since that wasn't what the ticket was encrypted with. That's when BADOPTION is logged.&lt;/p&gt;
&lt;p&gt;If you haven't tried already, setup my DelegConfig tool and it should find who has the duplicate SPN. There is a limitaion in the tool currently where it will not search all the trusted domains, but as long as the IIS server and the accounts that you're using for the AppPools are all in the same domain, then it should work fine.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2184514" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2183500</link><pubDate>Wed, 20 Feb 2008 03:50:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2183500</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I have a related question - what&amp;#39;s likely the cause of an error in the logs stating a krb_err_badoption logon event trying to connect to a server in server realm abcsteve.com, server name host/silver.abcsteve.com, but a target name of host/abcsteve.com@abcsteve.com&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2183500" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#2124524</link><pubDate>Tue, 22 Jan 2008 13:07:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2124524</guid><dc:creator>hitter</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;how i can configure constrain delegation for nlb iis(virtual name)? app pool must run under local system account.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2124524" width="1" height="1"&gt;</description></item><item><title>re: The biggest mistake: ServicePrincipalName’s</title><link>http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/the-biggest-mistake-serviceprincipalname-s.aspx#1998946</link><pubDate>Fri, 09 Nov 2007 19:20:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1998946</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Just wanted to say thanks for the DelegConfig tool. Very helpful for someone thats trying to learn about any type of delegation. Its straight forward, in plain english, and easy to use.&lt;/p&gt;
&lt;p&gt;Sadly, I had to learn a few things the hard way before coming accross your posts. &amp;nbsp;I did figure out most of the things you talk about here...but the new stuff put it all into perspective.&lt;/p&gt;
&lt;p&gt;Simple. right?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=1998946" width="1" height="1"&gt;</description></item></channel></rss>