title: How to get at the current users windows identity?
body: <p>The site is running on my local IIS 6.1. I Would like to add some features to pull information from our Active Directory (AD). My AD code works on many other projects and on my development server. Here are my attempts at writing out the username:</p>
  <pre><code>Response.Write(&quot;1. &quot; + this.Request.LogonUserIdentity.Name);
  Response.Write(&quot;2. &quot; + Request.ServerVariables[&quot;Auth_User&quot;]);
  Response.Write(&quot;3. &quot; + WindowsIdentity.GetCurrent().Name.ToString());
  </code></pre>
  <p>The results I get are:</p>
  <ol>
  <li>NT AUTHORITY\IUSR</li>
  <li>administrator</li>
  <li>NT AUTHORITY\NETWORK SERVICE</li>
  </ol>
  <p>How can I get at the actual windows username like <code>ourdomain/username</code></p>