diff options
author | alecpl <alec@alec.pl> | 2010-04-21 13:44:14 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-04-21 13:44:14 +0000 |
commit | 93c01888547210f54bd593d0774f9f63ec38f7a7 (patch) | |
tree | 3ce83c8f7f50c1482d686a1b6b7d5f344969c5ac /program/include | |
parent | f3e1010090c0b3dbcbf04c6ad356a610637ba2a9 (diff) |
- Add sizelimit and timelimit variables in LDAP config (#1486544)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_ldap.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 4cacd5232..04ccd6cb2 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -627,7 +627,9 @@ class rcube_ldap extends rcube_addressbook $this->_debug("C: Search [".$filter."]"); - if ($this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0)) { + if ($this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, + array_values($this->fieldmap), 0, (int) $this->prop['sizelimit'], (int) $this->prop['timelimit']) + ) { $this->_debug("S: ".ldap_count_entries($this->conn, $this->ldap_result)." record(s)"); return true; } else |