title: Accessing Employee ID via LDAP in a Classic ASP/VBScript application
body: <p>I've got an older ASP/VBScript app that I'm maintaining/upgrading and its currently using the older/depreciated means of gathering profile information - like below:</p>
  
  <pre><code>strNTUser = Request.ServerVariables("AUTH_USER")
  strNTUser = replace(strNTUser, "\", "/")
  Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
  'You get the idea'
  </code></pre>
  
  <p>When all I needed was the full name and the description, this was fine. Now I need to access some additional profile information, but I need to use LDAP instead of WinNT. I've Google'd till I was blind, but for the life of me I just can't seem to wrap my brain around connecting via LDAP and getting the info that I need.</p>
  
  <p>What do I need to do to get the First Name, Last Name, and Employee ID based on the AUTH_USER?</p>
  
  <p><strong>Update</strong>: I figured from the outset that ADSI or some similar interface would be required, but I am apparently an ADIdiot and am getting no useful hint - let alone help - from anything I have found on MSDN or TechNet. More explicit help would be nice...</p>