This commit is contained in:
the-djmaze 2023-01-31 11:35:25 +01:00
parent d7b5f3f4db
commit dc49aaf94d

View file

@ -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');