<?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 'Authentification'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Authentification&amp;orTags=0</link><description>Search results matching tag 'Authentification'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>What to do for a rootkit...</title><link>http://forums.iis.net/p/1158419/1906905.aspx#1906905</link><pubDate>Sun, 14 Jun 2009 13:01:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906905</guid><dc:creator>rgsnowman</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I have recently found a rootkit on my computer through AVG and am wondering how to get this thing off. I tried to get AVG to delete it but it said it cannot. I heard you can re-install windows vista and also restore default settings but I am not sure if that deletes everything and I&amp;#39;ll have to get external hd and if the rootkit would get itself into there and I&amp;#39;d be re-installing a rootkit. This rootkit is screwing up my xps one it tiny ways, it changed all my security setting and turned my anti-viruses off and I can&amp;#39;t turn them back on, messed up background, screwed up start menu and toolbar, and the side panel. I just want to know the best way to get this off computer. Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Integrated windows authentication IIS6.0 on two sites behaves differently</title><link>http://forums.iis.net/p/1157483/1903138.aspx#1903138</link><pubDate>Fri, 08 May 2009 14:36:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903138</guid><dc:creator>tautau</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;I have a webserver with 2 websites running, The webserver is in a domain.&lt;/p&gt;&lt;p&gt;The sites are set up identical so why onlly one works i Can&amp;#39;t figure out &lt;br /&gt;&lt;/p&gt;&lt;p&gt;site1 works perfectly with single sign on&lt;/p&gt;&lt;p&gt;site 2 user is prompted with username and password&lt;/p&gt;&lt;p&gt;I have checked&amp;nbsp; that the both appPools runs with networkService user.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please let me know whhat you need of information and i will provide it as soon as possible &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;&lt;p&gt;tautau &lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS Access to SQL Server</title><link>http://forums.iis.net/p/1157163/1901827.aspx#1901827</link><pubDate>Fri, 24 Apr 2009 22:54:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901827</guid><dc:creator>hrscott</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Had to rebuild an XP Pro desktop (SP3) with IIS 5.1.&amp;nbsp; Running a Visual Studio web application that will not connect to a remote SQL Server throught IIS.&amp;nbsp; Get Server does not exist or access denied.&amp;nbsp;Here are the facts:&lt;/p&gt;
&lt;p&gt;&amp;gt; Duplicate workstation works fine with exact same web app&lt;/p&gt;
&lt;p&gt;&amp;gt; IIS will connect to local sql server fine.&lt;/p&gt;
&lt;p&gt;&amp;gt; Visual Studio&amp;#39;s web server connects fine to remote &amp;amp; local sql server.&lt;/p&gt;
&lt;p&gt;&amp;gt; All other software (vb, access/odbc, Enterprise Mgr...) connects to remote server.&lt;/p&gt;
&lt;p&gt;&amp;gt; Firewall has been turned off.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;There must be some security setting that I&amp;#39;m missing on IIS.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;</description></item><item><title>IIS 7 on vista home premium</title><link>http://forums.iis.net/p/1155936/1896470.aspx#1896470</link><pubDate>Thu, 12 Mar 2009 08:06:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896470</guid><dc:creator>jstallard</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;I am playing around with IIS 7 on vista home premium to setup a website. &lt;/p&gt;
&lt;p&gt;I created a test.html page and placed it into the wwwroot directory. I can access it by navigating to localhost. However when accessing from a public network I keep getting the username and password logon window.&lt;/p&gt;
&lt;p&gt;I have configured anonymous authentication is enabled with&amp;nbsp;the ISS-IUSR account for anonymous access. with all other authentication disabled.&lt;/p&gt;
&lt;p&gt;This did not work, so I Created a local account with a password for the anonymous authentication, with the same results. &lt;/p&gt;
&lt;p&gt;Any suggestions on how to configure anonymous access to a web page would be helpful.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Membership Provider using client certificates(PKI)</title><link>http://forums.iis.net/p/1155745/1895609.aspx#1895609</link><pubDate>Wed, 04 Mar 2009 11:11:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1895609</guid><dc:creator>jlavender</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Does anyone know how difficult PKI authentication is to use for asp.net applications?
I set up a really simple website on a Server 2003 machine running IIS 6
and I found documentation on enabling client authentication using
client certificates(PKI) in IIS but I don&amp;#39;t see how to tie this into my .net web
application as a membership provider. I would think it would work just
like Windows Authentication but it doesn&amp;#39;t seem to. &lt;br /&gt;&lt;br /&gt;Any ideas/advice or tutorials would be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;</description></item><item><title>Allow local user on SSO forms–based authentication</title><link>http://forums.iis.net/p/1155171/1893014.aspx#1893014</link><pubDate>Wed, 11 Feb 2009 11:27:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893014</guid><dc:creator>c21Vince</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m using IIS5.1 and am setting a forms–based authentication for a multi site platform. For now, I can make it work but still cannot manage to allow a local user to be allowed.&lt;/p&gt;&lt;p&gt;Eventhoug I config the web.config file this way by example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow roles=&amp;quot;Administrators&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow roles=&amp;quot;.\Administrators&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow users=&amp;quot;.\Administrator&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow users=&amp;quot;.\administrator&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deny users=&amp;quot;?&amp;quot;/&amp;gt; &lt;/p&gt;&lt;p&gt;The local user will just have a blank page without any redirection or direct access. &lt;/p&gt;&lt;p&gt;&amp;nbsp;I could not find any proof what I want to do is doable but I should, shouldn&amp;#39;t it?&lt;/p&gt;&lt;p&gt;What am I missing ?&lt;/p&gt;&lt;p&gt;Thanks a lot for any help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Vince &lt;br /&gt;&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><item><title>ASP permission problem - HTTP Error 401.3</title><link>http://forums.iis.net/p/1154246/1889600.aspx#1889600</link><pubDate>Sat, 10 Jan 2009 18:25:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889600</guid><dc:creator>JayRO</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&lt;b&gt;Problem:&lt;/b&gt; a specific Global Security Group can not load ASP pages (but can load HTML pages).&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Goal:&lt;/b&gt; allow access to the secure website files and directories according to Global Group membership.&amp;nbsp; This
is a medical industry customer, so HIPAA compliance is mandatory (i.e.
file access and restrictions must be thoroughly configured and maintained).&lt;/p&gt;&lt;p&gt;&lt;b&gt;Environment:&lt;/b&gt;
Windows 2003 Server, Std. Ed., single server with Active
Directory.&amp;nbsp; IIS is serving a secure website to employees and
customers (amongst other non-related functions).&amp;nbsp; IIS has been
configured with a commerical Server Certificate to encrypt
communication betweeb the server and clients on the internet.&amp;nbsp; Anonymous access has been
disabled, so users are required to log in to the website with their
username/password.&amp;nbsp; (This was a 2000 Server, upgraded to 2003).&amp;nbsp; I created a disk partition just for website files.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;b&gt;Detail:&lt;/b&gt; The employees are members of the Global Group
&amp;#39;Domain Users&amp;#39;.&amp;nbsp; No problems for the employees to access the
website.&amp;nbsp; The customers are members of the Global Group &amp;#39;Web Site
Users&amp;#39; (and removed from Domain Users group).&amp;nbsp; There is a virtual
directory mapped at the root level of the website named &amp;#39;CustomerStuff&amp;#39;
that maps to the &amp;#39;CustomerFiles&amp;#39; directory (located at another
drive/directory location).&lt;/p&gt;&lt;p&gt;In the CustomerFiles directory, I
created a simple test.html page which the customer can browse to
successfully.&amp;nbsp; I copied the test.html to test.asp (leaving the
HTML markup as-is, no ASP scripting added), and browsing for the
customer is denied:&amp;nbsp; &amp;quot;HTTP Error 401.3 - Unauthorized: Access is
denied due to an ACL set on the requested resource.&amp;quot;&lt;/p&gt;&lt;p&gt;By
adding the &amp;#39;Web Site Users&amp;#39; group to &amp;#39;Domain Users&amp;#39; group, then
browsing ASP pages succeeds.&amp;nbsp; This solution is not acceptable, as
the customers would then have unauthorized access to sensitive patient
information.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;b&gt;Attempts to resolve:&lt;/b&gt;&lt;br /&gt;

- The permissions for test.html and test.asp are identical (being in
the same directory, access to the directory is not an issue). I am
fairly certain this is NOT a file permissions issue.&amp;nbsp; I believe
this to be some type of process level or possibly registry access permissions issue.&lt;br /&gt;
- Using SysInternal&amp;#39;s &amp;quot;Process Monitor&amp;quot; app, I have repeatedly
monitored browsing of test.html and test.asp both successful and
unseccessful access.&amp;nbsp; Absolutely nothing presents itself as access
denied in the Process Monitor log, and I can not detect where the process
becomes different for the 401.3 error.&lt;br /&gt;
- I have turned on failure auditing for:&lt;br /&gt;
&lt;/p&gt;
&lt;blockquote&gt;- System drive (including entire WINNT structure).&lt;br /&gt;- entire partition&amp;lt;&amp;gt; for ClientFiles,&lt;br /&gt;- entire partiton for website files&lt;br /&gt;- HKLM in the registry&lt;br /&gt;
  - all Audit Policies available in GPO&lt;/blockquote&gt;No FAILURE entries are to be found in the Security log.&lt;br /&gt;
&amp;lt;&amp;gt;&lt;br /&gt;
I have attempted every trick I know of (and could find on the internet)
to determine what is causing the 401.3 access denied error.&amp;nbsp; I
have also tried numerous tweaks to file structure and User Rights
permissions in an effort to find what is needed to allow the ASP page
to load (but I am very hesitant to be too aggressive opening
permissions, as this site needs to stay secure).&lt;br /&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance for any ideas, as I now have over 10 hours troubleshooting this issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;--Jay Ohman&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Replace Popup for Windows Integrated Authentication using LogonUser</title><link>http://forums.iis.net/p/1153569/1886758.aspx#1886758</link><pubDate>Thu, 04 Dec 2008 17:52:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886758</guid><dc:creator>CraigWU</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;I have a website which I&amp;#39;m customizing but is part of a third-party helpdesk application.&amp;nbsp; The application used Windows Integrated Authentication, and I&amp;#39;m trying to figure out if its possible to get rid of the annoying popup asking for UserName and Password.&amp;nbsp; I&amp;#39;ve seen several articles about implementing Mixed Mode, but they always assume the general site is Forms Authenicated, and the Windows Integrated Authentication is used to create tokens for the Forms site.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;d like to know if its possible to cache the users credentials in the HttpContext.Current.User so the popups can be avoided in Windows Integrated Authentication?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What I&amp;#39;ve done so far:&amp;nbsp; I&amp;#39;ve created a directory in my site that allows Anonymous access and put my logon page there.&amp;nbsp; I&amp;#39;m able to successfully direct the initial logon to this page, and usiing LogonUser (advapi32.dll), I can validate the users credentials.&amp;nbsp; Then once validated, I can create WindowsIdentiy and assign the HttpContext.Current.User to this.&amp;nbsp; It all works fine until I redirect to a page which requires Windows Authentictation, because I get the popup.&amp;nbsp; Here is my code:&lt;/p&gt;
&lt;blockquote&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;If&lt;/span&gt; LogonUserA(sUserName, sDomain, sPassword, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, tokenHandle) &lt;span class="kwd"&gt;Then&lt;/span&gt;
     identity = &lt;span class="kwd"&gt;New&lt;/span&gt; WindowsIdentity(tokenHandle, &lt;span class="st"&gt;&amp;quot;NTLM&amp;quot;&lt;/span&gt;, WindowsAccountType.Normal, &lt;span class="kwd"&gt;True&lt;/span&gt;) 
     HttpContext.Current.User = &lt;span class="kwd"&gt;New&lt;/span&gt; WindowsPrincipal(identity) 
     Response.Redirect(blah...)
&lt;span class="kwd"&gt;End If&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;I know that once I&amp;#39;m prompted, I can logout of the applicatoin and backin without being prompted again.  Also, any browser session that I create from this session is also already authenticated.&lt;/span&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;What I would like to figure out is how can I cache the WindowsPrincipal I create so that is acts that same way?  Is this even possible?&lt;/pre&gt;</description></item><item><title>403.7 64 on IIS 6 on both XP 64 and server 2003 R2 64</title><link>http://forums.iis.net/p/1152787/1883609.aspx#1883609</link><pubDate>Mon, 03 Nov 2008 15:01:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1883609</guid><dc:creator>Carrots</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;In the IIS logs, our client has found a bunch of 403.7 64 &amp;#39;s being
logged. Most of them are to /VirtualDirectoryName, for example:&lt;br /&gt;&lt;br /&gt;2008-10-30
06:41:00 W3SVC3 xxx.xxx.xxx.xxx GET /VirtualDirectoryName - 443 -
xxx.xxx.xxx.xxx
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.04506&lt;br /&gt;.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022) 403 7 64&lt;br /&gt;&lt;br /&gt;These happen quite often, sometimes 4 or so requests in a row.&lt;br /&gt;Directory
browsing is disabled on the sites, and the default page is set to
default.htm which exists, so theoretically, there should be no requests
for the path.&lt;br /&gt;I have enabled schannel logging, but couldnt find one
matching the timestamp in IIS. For example, in IIS we have one for
2008-10-30 11:49:50, and in event viewer we have one for 11:49:52 and
one for 11:49:45. I also couldnt find a patter that makes it look like
the one is trailing the other by a couple of seconds.&lt;br /&gt;&lt;br /&gt;All the IIS requests are on port 443, none are on 80.&lt;br /&gt;&lt;br /&gt;Schannel logs information events, but no warnings.&lt;br /&gt;The client confirmed that the system logs and IIS logs were from the same server.&lt;br /&gt;&lt;br /&gt;They run Windows 2003 x64 R2 on a NLB cluster. The machines in the testing environment is a single machine only.&lt;br /&gt;I
am able to intermittently reproduce it on my own environment (XP 64).
One out of 20 times doing the exact same actions will give me the error
in the logs. The error does not affect the user at all.&lt;br /&gt;&lt;br /&gt;Testers
currently test on Windows XP 32, with IE6, IE7 and Firefox, using
software certs, or in some cases USB tokens. I replicated using a
software cert.&lt;br /&gt;&lt;br /&gt;Now this does not sound like something I should
be spending my time on, but the client is being audited, and this has
been raised as a concern by the auditing company.&lt;/p&gt;</description></item></channel></rss>