I'm not sure if this is possible, but I want to get the following sub OUs from a given OU in an AD via LDAP:
Get all OUs that can be managed (permission to set passwords, to edit users or groups or whatever) by the given user X.
To get OUs I can filter by (objectClass=organizationalUnit)
, but how do I filter by management rights, is there a way?