<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>Search results matching tag 'NTLM'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=NTLM&amp;orTags=0</link><description>Search results matching tag 'NTLM'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Combine forms and NTLM authentication IIS7</title><link>http://forums.iis.net/p/1161406/1919182.aspx#1919182</link><pubDate>Thu, 01 Oct 2009 16:54:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919182</guid><dc:creator>bcdt</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Is it possible to combine NTLM authentication and forms authentication on IIS7?&lt;br /&gt;&lt;br /&gt;The setup I need to achieve is internal users authenticated via integrated windows authentication and external users authenticated via forms.&amp;nbsp; So only external users have to login via a form; internal, already authenticated users, navigate straight to the site.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve already tried the approach detailed at:&lt;br /&gt;&lt;br /&gt;http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx&lt;br /&gt;&lt;br /&gt;but that setup forces all users to authenticate with *both* windows *and* forms authentication, 2 level authentication, not an &amp;#39;either/or&amp;#39; situation.&lt;br /&gt;&lt;br /&gt;I had this working on IIS6 using a IP range check to redirect to the appropriate page as detailed here:&lt;br /&gt;&lt;br /&gt;http://beaucrawford.net/post/IIS-ldquo3bmixed-moderdquo3b-authentication-for-ASPNET-Application.aspx&lt;br /&gt;&lt;br /&gt;but it breaks in IIS7.&amp;nbsp; I think it&amp;#39;s because you can&amp;#39;t remove forms auth from the integrated windows page once it&amp;#39;s enabled for the site...&lt;br /&gt;&lt;br /&gt;The core problem seems to be that anonymous authentication must be disabled for NTLM auth but enabled for forms auth.&amp;nbsp; I read in the Wrox Pro IIS7 book that forms auth is code based, all other authentication types rely on credentials transported in HTTP headers - 302 redirect for forms, 401 challenge for integrated, so they should be incompatible?, but as IIS7 has an integrated pipeline I think I should be able to customize authentication? but if that requires writing a custom HttpModule that&amp;#39;s a pretty advanced subject.&lt;br /&gt;&lt;br /&gt;Can the pattern Mike used in the first link be modified to achieve what I want?&amp;nbsp; Or is that approach completely wrong for this situation?&amp;nbsp; Perhaps I can achieve this more simply via configuration?&lt;/p&gt;&lt;p&gt;Any suggestions would be much appreciated, as I&amp;#39;ve worked through 2 wrox IIS7 books and still can&amp;#39;t solve this problem.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Windows Authentication Failing in IIS with IE8</title><link>http://forums.iis.net/p/1161205/1918316.aspx#1918316</link><pubDate>Fri, 25 Sep 2009 15:40:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918316</guid><dc:creator>WaterWolf12345</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Okay, I enabled kerberos logging as per this article: &lt;a href="http://support.microsoft.com/?kbid=262177" title="http://support.microsoft.com/?kbid=262177" target="_blank"&gt;http://support.microsoft.com/?kbid=262177&lt;/a&gt;&lt;/p&gt;&lt;p&gt;There&amp;#39;s now a couple of kerberos error messages in my event log, I don&amp;#39;t know if they were caused by IIS or not.&amp;nbsp; Error Code: 0xd KDC_ERR_BADOPTION and&amp;nbsp; Error Code: 0xd KDC_ERR_BADOPTION. I&amp;#39;ll have to see if I can figure out what they mean.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS Session Timeout problem</title><link>http://forums.iis.net/p/1160915/1916985.aspx#1916985</link><pubDate>Tue, 15 Sep 2009 10:36:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916985</guid><dc:creator>Usman Sadjid</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am having problems trying to work out if it is possible to share iis session timouts accross web applications in the following scenario: -&lt;/p&gt;&lt;p&gt;In my environment there are 2 IIS Web Servers on the same network domain.&lt;/p&gt;&lt;p&gt;One of the servers will host a .NET web application.&amp;nbsp; The other will host a COTS document management system (OpenText Livelink Enterprise Server) which is not a .NET web application.&amp;nbsp; Both web applications will be using windows authentication.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; The COTS system will access the .NET web application such that when a User logs on to the COTS system, the .NET web application is accessed either via a web service or through a .NET aspx webpage.&amp;nbsp; The problem we have is that our client has a requirement in order to maintain iis timeouts accross both applications such that the same timeout period will effectively timeout a user from both the COTS system and the .NET web application at the same time.&amp;nbsp; By timeout, I mean require the user to re-authenticate.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My first question is, is it possible to pass an authentication token through from the COTS web application to the .NET web application in this scenario.&amp;nbsp; Secondly and more importantly, is it possible to handle iis session timeouts as described above?&amp;nbsp; If so, could you please direct me to any articles that may be of use, as I can&amp;#39;t seem to find anything.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated. &lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Java-Applet authenticates with NTLM instead of Kerberos, Double-Hob-Issue</title><link>http://forums.iis.net/p/1160798/1916433.aspx#1916433</link><pubDate>Thu, 10 Sep 2009 14:09:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916433</guid><dc:creator>Irgi</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;I have a well running 3-tier web application in a Windows 2003 domain. The Internet-Explorer Clients call aspx-pages ont he webserver. The webserver then performs a DCOM call to a document management server using impersonation. It all works fine using only aspx pages. Checking the thread principal before doing the call to DCOM shows me the correct Windows-User on the client machine and the Authentication-Type &amp;quot;Kerberos&amp;quot;.&lt;/p&gt;&lt;p&gt;Here comes the problem:&lt;/p&gt;&lt;p&gt;There is a java-applet (which is a third party thing) in one of the webpages to allow the user to drag documents onto it and then it calls an aspx page to upload the document. &lt;/p&gt;&lt;p&gt;Checking the thread principal before doing the call to DCOM shows me
the correct Windows-User on the client machine but the
Authentication-Type &amp;quot;NTLM&amp;quot;. The thread now tries to call DCOM using the &amp;quot;Anonymous&amp;quot; user (I see this in the eventlog of the server that hosts the DCOM object) and throws an exception when i call Activator.CreateInstance(type). Looks like the classic &amp;quot;Double-Hop-Issue&amp;quot;.&lt;/p&gt;&lt;p&gt;Any ideas how to fix this or work around it?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>ARR proxying to a site requiring Windows (NTLM) auth fails :(</title><link>http://forums.iis.net/p/1159678/1912063.aspx#1912063</link><pubDate>Thu, 30 Jul 2009 16:20:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912063</guid><dc:creator>DrSpook</dc:creator><cs:applicationKey>iis_70_-_application_request_routing_arr-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m using ARR &amp;amp; URL_ReWrite to successfully proxy &lt;a href="http://site/site2/"&gt;http://site/site2/&lt;/a&gt;* to &lt;a href="http://site2/"&gt;http://site2/&lt;/a&gt;*, but only if site2 doesn&amp;#39;t require windows authentication.&lt;/p&gt;
&lt;p&gt;Where site2 requires windows auth, my valid login credentials don&amp;#39;t work &amp;amp; I get barfed out with an access denied error.&lt;/p&gt;
&lt;p&gt;This proxy will be used by both internal and external users, the latter coming in through ISA Server.&amp;nbsp; We&amp;#39;ve done the proxying internally rather than on ISA so that we can have single URLs that work for both internal and external users (e.g. our intranet can link to &lt;a href="http://intranet/app1"&gt;http://intranet/app1&lt;/a&gt; &amp;amp; all users will be sent transparently to &lt;a href="http://app1/"&gt;http://app1/&lt;/a&gt;*).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any info gratefully received.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers :)&lt;/p&gt;</description></item><item><title>Authentication Fails when &amp;quot;Enable Integrated Windows Authentication&amp;quot; is checked in IE</title><link>http://forums.iis.net/p/1158745/1908264.aspx#1908264</link><pubDate>Thu, 25 Jun 2009 16:47:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908264</guid><dc:creator>maltesehamster</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have two applications running on a Windows 2003 server.&amp;nbsp; Each runs under a separate application pool, and each application pool runs under a separate domain account.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;When users connect to the application, having &amp;quot;Enable Integrated Windows Authentication&amp;quot; turned on in Internet Explorer, they are not able to authenticate.&amp;nbsp; However, if they turn the setting off, they are able to connect no problem.&lt;/p&gt;
&lt;p&gt;IIS is configured with a NTAuthenticationProviders of NTLM.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is there a way to allow users to authenticate regardless of whether they have the &amp;quot;Enable Integrated Windows Authentication&amp;quot; setting turned on or off in IE, yet still have the applications run under separate application pools with separate domain accounts?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Leigh&lt;/p&gt;</description></item><item><title>IIS7 + PHP5.2 + (Optional) NTLM?</title><link>http://forums.iis.net/p/1157546/1903385.aspx#1903385</link><pubDate>Mon, 11 May 2009 20:46:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903385</guid><dc:creator>rpanning</dc:creator><cs:applicationKey>php_community-49</cs:applicationKey><description>&lt;p&gt;We have our Web server running IIS7 and PHP 5.2 on our internal ActiveDirectory domain. What I&amp;#39;d like to get setup is NTLM username to be passed to PHP, if there is one.&lt;/p&gt;&lt;p&gt;So that, if a user is logged into a workstation on our AD domain, their username is passed to IIS &amp;gt; PHP so that I know who is already logged in, for SSO. However, if they are not on the domain (eg. viewing from the outside, Web) that nothing is passed to IIS &amp;gt; PHP and there is no login prompt for the user. Is this possible? Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>401 error</title><link>http://forums.iis.net/p/1157183/1901930.aspx#1901930</link><pubDate>Sun, 26 Apr 2009 20:40:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901930</guid><dc:creator>LISpeedyG</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been trying to resolve the followign issue for a number of days and have, so far, been unsucessful.&amp;nbsp; Ok, here is some very strange behavior.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;And, any help[ or direction would be very much appreciated.:&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;Background&lt;/span&gt;&lt;/li&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I am currently running Server 2003 with IIS6 and SharePoint 2007&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I use the SP front end server to both develop and deploy most of my InfoPath Admin deployed forms. &lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;The forms that are deployed are currently being consumed thru an external facing website.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This website is accessible by only authorized users that are authenticated thru Active Directory.&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;All has been working perfectly until recently.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I was able to develop these forms and deploy them from the InfoPath wizard to an external IP where they are eventually consumed.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;Currently on the Front end Web Server:&lt;/span&gt;&lt;/li&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I am no longer able to log into the external facing IP addresses to the SP sites.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;In trying to connect to these sites I receive an HTTP 401.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The following is an excerpt from the IIS log with the error:&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;p style="MARGIN:0in 0in 0in 0.75in;FONT-FAMILY:Calibri;FONT-SIZE:11pt;"&gt;2009-04-24 17:58:32 W3SVC1994479640 192.168.1.165 GET /Sites/XXXXX/ - 3335 - external_ip Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+GTB5;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+InfoPath.2;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) &lt;span style="COLOR:red;FONT-WEIGHT:bold;"&gt;401 2 2148074254&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0in 0.75in;FONT-FAMILY:Calibri;FONT-SIZE:11pt;"&gt;2009-04-24 17:58:32 W3SVC1994479640 192.168.1.165 GET /Sites/XXXXX/ - 3335 - external_ip Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+GTB5;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+InfoPath.2;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) &lt;span style="COLOR:red;FONT-WEIGHT:bold;"&gt;401 1 0&lt;/span&gt;&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I can, however, log into the same site thru the internal domain.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Unfortunately, I can no longer develop InfoPath forms that are consumable from an external facing IP without access to the external IP from the server.&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;Interestingly, I can still access the external IP from Firefox on the same server.&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I can no longer deploy forms using the external web address and associated DB/SP list links.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;So, forms functionality becomes unusable from external web addresses.&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;Also, I can still access the external site from the backend SQL Server on the same domain as the Web Server.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Note that this SQL server has 8 pending updates that have been applied to the WebServer, i.e. KB:&lt;/span&gt;&lt;/li&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;963027&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;923561&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;952004&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;956572&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;959426&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;960803&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;961373&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;890830&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;p style="MARGIN:0in 0in 0in 1.125in;FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;unicode-bidi:embed;FONT-FAMILY:Calibri;DIRECTION:ltr;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;I have checked the FAQ&amp;#39;s for all the pending updates but have not been able to find any relevant IIS issues with Server 2003.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;&amp;nbsp;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-FAMILY:Calibri;FONT-SIZE:14pt;FONT-WEIGHT:bold;"&gt;Gus&lt;/span&gt;&lt;/p&gt;</description></item><item><title>IIS sending NTLM challenge to incorrect IP</title><link>http://forums.iis.net/p/1156691/1899770.aspx#1899770</link><pubDate>Tue, 07 Apr 2009 21:27:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1899770</guid><dc:creator>scotthermes</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;I have written .NET console application to push a file to a SharePoint server on Windows 2003 that is using windows integrated authentication (NTLM). It fails on the first try and then works for 20 minutes and then fails again (and so on).&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;I used Fiddler to look at the HTTP traffic on a failed request and I noticed that I was not getting a challenge response in the HTTP response. I worked with the SharePoint admin to view the IIS logs (it is running IIS 6.0) and we saw the following.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;On a successful request, I can see my machine&amp;#39;s IP (&lt;font face="Courier New"&gt;yyy.yyy.yyy.yyy) &lt;/font&gt;and my username&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;2009-04-01 &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;20:15:02&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt; xxx.xxx.xxx.xxx PUT /test/Shared+Documents/test2009-4-1-15-15-0.xls - 80 MyDomain\MyUserId yyy.yyy.yyy.yyy 200 0 615 487 203&lt;/span&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;On a failure, it does not show my Id and it shows a different IP. &lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;2009-04-01 &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;20:15:02&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt; xxx.xxx.xxx.xxx PUT /test/Shared+Documents/test2009-4-1-15-15-0.xls - 80 - zzz.zzz.zzz.zzz 200 5 582 301 1843&lt;/span&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;I also noticed that on a failure, it takes significantly longer to do the DNS lookup (approx 300 ms v. 0 ms) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Interestingly enough, the request does not &amp;quot;fail&amp;quot; in the traditional sense (i.e. Unauthorized or Server not found error) but instead it just does not push the file and instead of a zero byte response it sends back the following:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;META HTTP-EQUIV=&amp;quot;REFRESH&amp;quot; CONTENT=&amp;quot;0;URL=&lt;i style="mso-bidi-font-style:normal;"&gt;someurl&lt;/i&gt;&amp;quot;&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Where &lt;i style="mso-bidi-font-style:normal;"&gt;someurl&lt;/i&gt; is what the URL would have been if my file was pushed. So, if I was trying to push file “test.txt” to “http://mysite/docs” then someurl would be “http://mysite/docs/text.txt”&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;We have a proxy at work and I have:&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;-&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;disabled it in my IE settings&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;-&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;disabled it in my .NET code&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;And the result is the same whether I disable or enable.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Any ideas? Any other debugging / troubleshooting tools I should be using to resolve?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Scott Hermes&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>COMException (0x80072020): An operations error occurred. HELP</title><link>http://forums.iis.net/p/1155010/1892505.aspx#1892505</link><pubDate>Thu, 05 Feb 2009 21:39:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1892505</guid><dc:creator>grub425</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;I have an application that is using LDAP only with Single Sign On running on a windows 2003 server, running iis 6.0&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;My Domain Functional Level: Windows 2003 Server, Forest Functional level: Windows 2003&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;My web.config authentication is set:&lt;br /&gt;&amp;lt;authentication mode=&amp;quot;Windows&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;identity impersonate=&amp;quot;true&amp;quot;/&amp;gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Users login, retrieve a document and are logged off. In a 2 hrs period 1250 users will login and out of the application and 10 users will fail. The same user will have access documents minutes before the failure and minutes after the failure. Error message:&lt;br /&gt;Warning: GetUserDN(&amp;#39;testuser&amp;#39;) from &amp;#39;LDAP://DC=domain,DC=com&amp;#39;: System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred. &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;On the web server I will see the user authenticated with NTLM instead of Kerberos &lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Bad Entry:&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Logon Type: 3&lt;br /&gt;Logon Process: NtLmSsp &lt;br /&gt;Authentication Package: NTLM&lt;br /&gt;Workstation Name: TESTMACHINE&lt;br /&gt;Logon GUID: -&lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Vs:&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Good Entry: Logon Type: 3&lt;br /&gt;Logon Process: Kerberos&lt;br /&gt;Authentication Package: Kerberos&lt;br /&gt;Workstation Name: &lt;br /&gt;Logon GUID: {ad208202-d700-fcfc-5782-713441f31ef8} &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;If I run and test webpage from the user workstation to retrieve the users credential It returns:&amp;nbsp; You have connected from your browser to IIS using Kerberos authentication and verifies that the SPN is ok.&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Also the .ini file for the application open a login file which has modify rights for all users but when the login fails using a filemon trace I see an access denied error for the log. &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Kerberos settings in the domain are:&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;Policy Setting &lt;br /&gt;Enforce user logon restrictions Enabled &lt;br /&gt;Maximum lifetime for service ticket 60 minutes &lt;br /&gt;Maximum lifetime for user ticket 7 hours &lt;br /&gt;Maximum lifetime for user ticket renewal 10 days &lt;br /&gt;Maximum tolerance for computer clock synchronization 5 minutes &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Server and service accounts&amp;nbsp;have delegation set to trust this computer&amp;nbsp;for delegation to any service (kerberso only).&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;Below I have included the code for the function.&amp;nbsp; Any suggestions on what to try or set to resolve this? &lt;/font&gt;&lt;/span&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;"&gt;Imports&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt; System.DirectoryServices&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:green;"&gt;&amp;#39;------------------------------------------------------------------------------------&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:green;"&gt;&amp;#39; Returns user distinguished and full names for given user account name.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:green;"&gt;&amp;#39;------------------------------------------------------------------------------------&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Private&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Function&lt;/span&gt; GetUserDN(&lt;span style="COLOR:blue;"&gt;ByRef&lt;/span&gt; name &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;, &lt;span style="COLOR:blue;"&gt;ByRef&lt;/span&gt; outFullName &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;) &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetUserDN = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Empty&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; logMsg &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; adsPath &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt; = adsPathPrefix &amp;amp; searchNC&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Searching &amp;#39;{0}&amp;#39; in &amp;#39;{1}&amp;#39;&amp;quot;&lt;/span&gt;, name, adsPath)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DbugLog(TypeName(&lt;span style="COLOR:blue;"&gt;Me&lt;/span&gt;), logMsg, gc_LogDebug4)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Try&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; searchRoot &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; DirectoryEntry = &lt;span style="COLOR:blue;"&gt;New&lt;/span&gt; DirectoryEntry(adsPath)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchRoot.AuthenticationType = authType &lt;span style="COLOR:green;"&gt;&amp;#39; default is AuthenticationTypes.Secure&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchRoot.Options.Referral = refChasingOption &lt;span style="COLOR:green;"&gt;&amp;#39; default is ReferralChasingOption.None&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; searcher &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; DirectorySearcher = &lt;span style="COLOR:blue;"&gt;New&lt;/span&gt; DirectorySearcher(searchRoot) &lt;span style="COLOR:green;"&gt;//// THIS IS A .NET OBJECT, System.DirectoryServices.DirectorySearcher ////&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searcher.Filter = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;(&amp;amp;(objectClass=user)(objectCategory=person)(sAMAccountName={0}))&amp;quot;&lt;/span&gt;, name)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searcher.PropertiesToLoad.Add(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;cn&amp;quot;&lt;/span&gt;)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searcher.PropertiesToLoad.Add(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;distinguishedName&amp;quot;&lt;/span&gt;)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searcher.SearchScope = SearchScope.Subtree&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; result &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; SearchResult = searcher.FindOne() &lt;span style="COLOR:red;"&gt;///// THIS CALL FAILS /////&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="COLOR:blue;"&gt;If&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Not&lt;/span&gt; result &lt;span style="COLOR:blue;"&gt;Is&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Nothing&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFullName = result.Properties(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;cn&amp;quot;&lt;/span&gt;)(0)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetUserDN = result.Properties(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;distinguishedName&amp;quot;&lt;/span&gt;)(0)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Found &amp;#39;{0}&amp;#39;: CN=&amp;#39;{1}&amp;#39;, DN=&amp;#39;{2}&amp;#39;&amp;quot;&lt;/span&gt;, name, outFullName, GetUserDN)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Else&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;&amp;#39;{0}&amp;#39; not found&amp;quot;&lt;/span&gt;, name)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DbugLog(TypeName(&lt;span style="COLOR:blue;"&gt;Me&lt;/span&gt;), logMsg, gc_LogDebug4)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Catch&lt;/span&gt; ex &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; Exception&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = ex.ToString()&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;GetUserDN(&amp;#39;{0}&amp;#39;) from &amp;#39;{1}&amp;#39;: {2}&amp;quot;&lt;/span&gt;, name, adsPath, logMsg.Remove(logMsg.IndexOf(vbCrLf &amp;amp; vbCrLf)))&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DbugLog(TypeName(&lt;span style="COLOR:blue;"&gt;Me&lt;/span&gt;), logMsg, gc_LogWarning)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Try&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Function&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;The ”name” parameter is obtained from Windows as the name of the user the current thread is impersonating – the delegated end user. That’s how GetUserDN() is called:&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;font size="3"&gt;&amp;nbsp;. . .&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;font size="3"&gt;&amp;nbsp;. . .&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="COLOR:blue;"&gt;If&lt;/span&gt; authName = &lt;span style="COLOR:#a31515;"&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;And&lt;/span&gt; authPassword = &lt;span style="COLOR:#a31515;"&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt; &lt;span style="COLOR:green;"&gt;&amp;#39; Single Sign-On&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = System.Security.Principal.WindowsIdentity.GetCurrent.Name&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Will authenticate as &amp;#39;{0}&amp;#39; (no input credentials, using thread identity)&amp;quot;&lt;/span&gt;, userName)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = userName.Remove(0, userName.LastIndexOf(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;\&amp;quot;c&lt;/span&gt;) + 1)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Else&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:#a6a6a6;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = authName&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:#a6a6a6;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logMsg = String.Format(&amp;quot;Will authenticate as &amp;#39;{0}&amp;#39; (using input credentials)&amp;quot;, IIf(authDomain = &amp;quot;&amp;quot;, authName, authDomain &amp;amp; &amp;quot;\&amp;quot; &amp;amp; authName))&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DbugLog(TypeName(&lt;span style="COLOR:blue;"&gt;Me&lt;/span&gt;), logMsg, gc_LogDebug4)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:green;"&gt;&amp;#39; Bind to rootDSE with authentication&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rootDSE = BindToObject(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;rootDSE&amp;quot;&lt;/span&gt;)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt; rootDSE &lt;span style="COLOR:blue;"&gt;Is&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Nothing&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Exit&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Function&lt;/span&gt; &lt;span style="COLOR:green;"&gt;&amp;#39; ====&amp;gt; Could not bind or authentincate - logon failed. &lt;/span&gt;&lt;span style="COLOR:red;"&gt;///// THIS CALL SUCCEEDS SINCE WE ALWAYS ENTER GetUserDN() BELOW ////&lt;/span&gt;&lt;span style="COLOR:green;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:green;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt; searchNC = &lt;span style="COLOR:#a31515;"&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt; &lt;span style="COLOR:green;"&gt;&amp;#39; Find the default naming context. //// THIS IS THE SEARCHBASE, OPTIONALLY SET IN vssystem.ini: [LDAP] SEARCHBASE=your_base_DN ////&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchNC = rootDSE.Properties(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;defaultNamingContext&amp;quot;&lt;/span&gt;)(0)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:green;"&gt;&amp;#39; Find the user&amp;#39;s distinguished and full names&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; fullName &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;Dim&lt;/span&gt; userDN &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt; = GetUserDN(userName, fullName)&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;String&lt;/span&gt;.IsNullOrEmpty(userDN) &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Exit&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Function&lt;/span&gt; &lt;span style="COLOR:green;"&gt;&amp;#39; ====&amp;gt; User not found - logon failed.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;font size="3"&gt;&amp;nbsp;. . .&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;font size="3"&gt;&amp;nbsp;. . .&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>