Hi, new to the forums, not new to PHP tho (although I’m not an OOP person).
I’m having trouble figuring out how to query AD to get all the groups that a user manages. I’m presuming the actually LDAP query would be something like (managedBy=$usersDN) like:
[php]$results = ldap_search($ldap, $adbase, “(managedBy=$dn)”);[/php]
However, I’m new to the ldap fuctions in PHP and it’s not really making sense to me. Any help would be appreciated (especially how can I get the groups in to an array so I can print that array out).