title: How do integrate Delphi with Active Directory?
body: <p>We need to validate an user on Microsoft's Active Directory using Delphi 7, what is the best way to do that?</p>
  
  <p>We can have two scenarios: the user inputs its network username and password, where the username may include the domain, and we check on active directory if it is a valid, active user. Or we get the current logged user from Windows, and check on AD if it is still valid.</p>
  
  <p>The first scenario requires user validation, while the second one just a simple AD search and locate.</p>
  
  <p>Does anyone know of components or code that do one or both of the scenarios described above?</p>