mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-28 18:41:34 +08: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 string $sBindDn = null;
|
||||
private string $sBindDn = '';
|
||||
|
||||
private string $sBindPassword = null;
|
||||
private string $sBindPassword = '';
|
||||
|
||||
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 (is_null($this->sBindDn)) {
|
||||
if (\is_null($this->sBindDn)) {
|
||||
$this->logLdapError($oCon, 'ldap_bind (anonymous)');
|
||||
} else {
|
||||
$this->logLdapError($oCon, 'ldap_bind');
|
||||
|
|
Loading…
Reference in a new issue