diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 3dd79a7d..9b084234 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -80,7 +80,8 @@ class ldapDrivers } } - //Set the search scope to be used + //Set the search scope to be used, default to subtree. + if (!isset($config['scope'])) $config['scope'] = 'subtree'; switch (strtolower($config['scope'])) { case "base": $this->ldap_query_one = ldap_read;