title: Get Active Directory Information with ASP.NET without username and password
body: <p>I am trying to get users' Active Directory information on the local network, from an ASP.NET Web Application. The Web Application is running on an <code>IIS</code> on the local network.</p>
  
  <p>What I want: When users log into the website, they can see their name, surname, username, email and picture from Active Directory. The problem is, when they enter their website, the web application is asking for username and password. Users have already entered their username and password when turning on their PCs. So they shouldn't need to do it again.</p>
  
  <p>Users login to PCs with their username and password.
  I can get domain and username with:</p>
  
  <pre><code>string adInfo = Request.ServerVariables["LOGON_USER"];
  </code></pre>
  
  <p>Also I can get Active Directory info on my local PC on debug when testing <code>System.DirectoryServices</code>, but when other users try this web app in local, the username and password dialog appears.</p>
  
  <p>How can I make it so that users are able to enter their website without entering their username and password?</p>
  
  <p>I tried all samples here, but I can not find any solution. I think I am missing some important things.</p>