Ran in to a project today where I had to revisit the old LDAP query.
Here are some useful links:
LDAP Query Basics
https://technet.microsoft.com/en-us/library/aa996205%28EXCHG.65%29.aspx
· Doing a Search Using Active Directory Users and Computers
Search Filter Syntax
http://msdn2.microsoft.com/en-us/library/aa746475.aspx
Famous LDAP Filters for Active Directory Environments
http://www.ldapexplorer.com/en/manual/109050000-famous-filters.htm
How to search and find user accounts in Active Directory
http://www.selfadsi.org/extended-ad/search-user-accounts.htm
Using Ldp.exe to Find Data in the Active Directory
https://support.microsoft.com/en-us/kb/224543
How to Create Custom Active Directory LDAP Searches
http://blogs.msdn.com/b/muaddib/archive/2011/10/24/active-directory-ldap-searches.aspx
More…
How Can I Get a List of All the Users Whose Passwords Never Expire with PowerShell?
LDAP/AD Claims Provider For SharePoint 2013