mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #849
This commit is contained in:
parent
d7b5f3f4db
commit
dc49aaf94d
1 changed files with 3 additions and 3 deletions
|
|
@ -6,9 +6,9 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
|
||||||
|
|
||||||
private bool $bUseStartTLS = true;
|
private bool $bUseStartTLS = true;
|
||||||
|
|
||||||
private string $sBindDn = null;
|
private string $sBindDn = '';
|
||||||
|
|
||||||
private string $sBindPassword = null;
|
private string $sBindPassword = '';
|
||||||
|
|
||||||
private string $sBaseDn = 'ou=People,dc=example,dc=com';
|
private string $sBaseDn = 'ou=People,dc=example,dc=com';
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!@\ldap_bind($oCon, $this->sBindDn, $this->sBindPassword)) {
|
if (!@\ldap_bind($oCon, $this->sBindDn, $this->sBindPassword)) {
|
||||||
if (is_null($this->sBindDn)) {
|
if (\is_null($this->sBindDn)) {
|
||||||
$this->logLdapError($oCon, 'ldap_bind (anonymous)');
|
$this->logLdapError($oCon, 'ldap_bind (anonymous)');
|
||||||
} else {
|
} else {
|
||||||
$this->logLdapError($oCon, 'ldap_bind');
|
$this->logLdapError($oCon, 'ldap_bind');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue