diff options
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_ldap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index c5962030f..df68f34f8 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -94,6 +94,10 @@ class rcube_ldap { if ($lc = @ldap_connect($host, $this->prop['port'])) { + if ($this->prop['use_tls']===true || strtoupper($this->prop['use_tls'])==='TRUE') + if (!ldap_start_tls($lc)) + continue; + ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['ldap_version']); $this->prop['host'] = $host; $this->conn = $lc; |