title: get user Active Directory details
body: <p>I am building a simple intranet site and I want to get the user's Active Directory.</p>
  
  <p>What steps do I need to take on the IIS side for this to work?
  Are any changes required to my web config? </p>
  
  <p>I would appreciate a detailed explanation, as this is giving me a hard time.</p>
  
  <p>I have tryed things like this</p>
  
  <pre><code>Request.LogonUserIdentity.Name.ToString
  </code></pre>
  
  <p>also </p>
  
  <pre><code>HttpContext.Current.User.Identity.Name
  </code></pre>
  
  <p>the users will not login the page should be able to get the credentials without them typing their username and password</p>
  
  <p>windows authentication in my web config throws an error and causes my page not to work</p>