LDAP scope=onelevel actually performs a subtree search
When scope
is set to 'onelevel' in the LDAP driver, a full subtree search is sometimes performed. I believe this is caused by what appears to be a typo in drivers_ldap.php
:
case "onelevel":
$this->ldap_query_one = 'ldap_list';
$this->ldap_query_all = 'ldap_search';
Seems like they should both be ldap_list
, since ldap_search
does a subtree search.