diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-08-09 17:26:47 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-08-09 17:35:54 +0200 |
commit | b7f327c9619c6ba12bde90220173f7c114584860 (patch) | |
tree | ec7e7a065ed5d4a34972ee45257f71dc8dcff22b | |
parent | a44ae9058394954f185a6fc83d3d17a46daf5ab0 (diff) | |
download | rpg-b7f327c9619c6ba12bde90220173f7c114584860.tar.gz rpg-b7f327c9619c6ba12bde90220173f7c114584860.tar.bz2 |
Fix variable name in ldap retrieveUsers
-rw-r--r-- | inc/auth/ldap.class.php | 6 |
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++){ |