I need to make a Active directory search, for example I have the follow OU
OU=client,OU=office,OU=Administration,DC=domain,DC=local
How I can search a User (for example sAMAccountName=’JUAN.PERZ’) in the OU, using the memberof instruction?
I use php to make the search with ldap_search.
I just need is to search a user, if the user is in the OU, using php,
Thanks!!!
The thing you need is called ldap_search you can find a full sample here