mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Added StartTLS functionality
Added StartTLS in function Connect(). And also added parameters in config to activate StartTLS.
This commit is contained in:
parent
0efc0bbe3a
commit
383e40636b
3 changed files with 18 additions and 0 deletions
|
|
@ -178,6 +178,15 @@ class LdapIdentities implements IIdentities
|
|||
return false;
|
||||
}
|
||||
|
||||
// Activate StartTLS
|
||||
if ($this->config->starttls) {
|
||||
$starttlsResult = ldap_start_tls($ldap);
|
||||
if (!$starttlsResult) {
|
||||
$this->ldapAvailable = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$this->ldap = $ldap;
|
||||
$this->ldapConnected = true;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue