LDAP: don't throw exceptions in the wrapper, errors are handled in the code. nevertheless, log unexpected errors

This commit is contained in:
Arthur Schiwon 2013-09-13 19:27:07 +02:00
parent 81cf4a22ef
commit a1aff3e8a1
1 changed files with 5 additions and 3 deletions

View File

@ -152,9 +152,11 @@ class LDAP implements ILDAPWrapper {
} else if ($errorCode === 10) {
//referrals, we switch them off, but then there is AD :)
} else {
throw new \Exception('LDAP error '.$errorMsg.' (' .
$errorCode.') after calling '.$this->curFunc.
' with arguments '.print_r($this->curArgs, true));
\OCP\Util::writeLog('user_ldap',
'LDAP error '.$errorMsg.' (' .
$errorCode.') after calling '.
$this->curFunc,
\OCP\Util::DEBUG);
}
}
}