LDAP: write to log in case bind fails.

This commit is contained in:
Arthur Schiwon 2012-05-08 12:04:52 +02:00
parent cdf5d4e231
commit 251a6d1a9f
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}