Ticket #1485104: rcube_ldap.inc_start_tls.patch

File rcube_ldap.inc_start_tls.patch, 484 bytes (added by ioan, 5 years ago)
  • rcube_ldap.inc

    old new  
    9595        ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['ldap_version']); 
    9696        $this->prop['host'] = $host; 
    9797        $this->conn = $lc; 
     98         
     99        if (isset($this->prop['start_tls']) && $this->prop['start_tls'] === 'true')  
     100              { 
     101          ldap_start_tls($this->conn); 
     102        } 
     103         
    98104        break; 
    99105      } 
    100106    }