How do I query for users in active directory?
You can use the Active Directory Query module.
Uri input value would be LDAP://ldapservername
To get a list of the LDAP servers you can run: nltest /dclist:DOMAINNAME on the commandline. Replace DOMAINNAME with the name of your domain.
Filter / query input for users would be: (&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.1135188.8.131.523:=2))
The column input can be used to select only certain fields.