From 3a08e80d5acbe8c202ed03c8529c31cc88c99888 Mon Sep 17 00:00:00 2001 From: Stonewall Jackson Date: Tue, 27 Feb 2024 13:32:15 -0500 Subject: [PATCH] Fix scope=onelevel in LDAP driver When `scope` is set to 'onelevel', the LDAP driver actually does a full subtree search instead. Should be `ldap_list` instead. Fixed. --- inc/drivers_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index bfb4aacc..754dac31 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -105,7 +105,7 @@ class ldapDriver break; case "onelevel": $this->ldap_query_one = 'ldap_list'; - $this->ldap_query_all = 'ldap_search'; + $this->ldap_query_all = 'ldap_list'; break; default: $this->ldap_query_one = 'ldap_search';