Skip to content
Snippets Groups Projects
Commit 251a6d1a authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: write to log in case bind fails.

parent cdf5d4e2
Branches
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment