summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/ldap.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php
index 069d0fc92..5cc186ce2 100644
--- a/inc/auth/ldap.class.php
+++ b/inc/auth/ldap.class.php
@@ -271,11 +271,11 @@ class auth_ldap extends auth_basic {
if (!isset($this->users)) {
// Perform the search and grab all their details
if(!empty($this->cnf['userfilter'])) {
- $filter = str_replace('%{user}', '*', $this->cnf['userfilter']);
+ $all_filter = str_replace('%{user}', '*', $this->cnf['userfilter']);
} else {
- $filter = "(ObjectClass=*)";
+ $all_filter = "(ObjectClass=*)";
}
- $sr=ldap_search($this->con,$this->cnf['usertree'],$filter);
+ $sr=ldap_search($this->con,$this->cnf['usertree'],$all_filter);
$entries = ldap_get_entries($this->con, $sr);
$users_array = array();
for ($i=0; $i<$entries["count"]; $i++){