mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
LDAP: write to log in case bind fails.
This commit is contained in:
parent
cdf5d4e231
commit
251a6d1a9f
1 changed files with 1 additions and 0 deletions
|
|
@ -613,6 +613,7 @@ class OC_LDAP {
|
|||
|
||||
$ldapLogin = @ldap_bind(self::$ldapConnectionRes, self::$ldapAgentName, self::$ldapAgentPassword );
|
||||
if(!$ldapLogin) {
|
||||
OCP\Util::writeLog('ldap', 'Bind failed: ' . ldap_errno(self::$ldapConnectionRes) . ': ' . ldap_error(self::$ldapConnectionRes), OCP\Util::ERROR);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue