Changeset 787 in subversion


Ignore:
Timestamp:
Sep 9, 2007 1:58:13 PM (6 years ago)
Author:
thomasb
Message:

Applied patch for LDAP version (#1484552)

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r777 r787  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42007/09/09 (thomasb) 
     5---------- 
     6- Applied patch for LDAP version (#1484552) 
     7- Improved XHTML validation 
     8 
    39 
    4102007/09/05 (thomasb) 
  • trunk/roundcubemail/config/main.inc.php.dist

    r767 r787  
    200200 *  'bind_dn'       => '', 
    201201 *  'bind_pass'     => '', 
     202 *  'ldap_version'  => 3,       // using LDAPv3 
    202203 *  'search_fields' => array('mail', 'cn'),  // fields to search in 
    203204 *  'name_field'    => 'cn',    // this field represents the contact's name 
  • trunk/roundcubemail/program/include/rcube_ldap.inc

    r677 r787  
    8787      $this->prop['hosts'] = array($this->prop['hosts']); 
    8888 
     89    if (empty($this->prop['ldap_version'])) 
     90      $this->prop['ldap_version'] = 3; 
     91 
    8992    foreach ($this->prop['hosts'] as $host) 
    9093    { 
    9194      if ($lc = @ldap_connect($host, $this->prop['port'])) 
    9295      { 
    93         ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['port']); 
     96        ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['ldap_version']); 
    9497        $this->prop['host'] = $host; 
    9598        $this->conn = $lc; 
Note: See TracChangeset for help on using the changeset viewer.