Changeset 93c01888 in github


Ignore:
Timestamp:
Apr 21, 2010 9:44:14 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
9ef5fa5
Parents:
f3e1010
Message:
  • Add sizelimit and timelimit variables in LDAP config (#1486544)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rf3e1010 r93c01888  
    22=========================== 
    33 
     4- Add sizelimit and timelimit variables in LDAP config (#1486544) 
    45- Hide IMAP host dropdown when single host is defined (#1486326) 
    56- Add images pre-loading on login page (#1451160) 
  • config/main.inc.php.dist

    rbc49601 r93c01888  
    388388  'scope'         => 'sub',   // search mode: sub|base|list 
    389389  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act 
    390   'fuzzy_search'  => true);   // server allows wildcard search 
     390  'fuzzy_search'  => true     // server allows wildcard search 
     391  'sizelimit'     => '0',     // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.  
     392  'timelimit'     => '0',     // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.  
     393); 
    391394*/ 
    392395 
  • program/include/rcube_ldap.php

    r5ffceb7 r93c01888  
    628628      $this->_debug("C: Search [".$filter."]"); 
    629629 
    630       if ($this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0)) { 
     630      if ($this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, 
     631          array_values($this->fieldmap), 0, (int) $this->prop['sizelimit'], (int) $this->prop['timelimit']) 
     632      ) { 
    631633        $this->_debug("S: ".ldap_count_entries($this->conn, $this->ldap_result)." record(s)"); 
    632634        return true; 
Note: See TracChangeset for help on using the changeset viewer.