Hi
How to get the user details from the Active directory with OU name using ldapsearch?
Here's an Answer that answers another question about speeding up LDAP searches, but the search should be a good pattern to use. This relies only on a configured SA-ldapsearch App, the configuration of which is in that app's docs.