LDAP: don't throw exceptions in the wrapper, errors are handled in the code. nevertheless, log unexpected errors
This commit is contained in:
parent
81cf4a22ef
commit
a1aff3e8a1
|
@ -152,9 +152,11 @@ class LDAP implements ILDAPWrapper {
|
||||||
} else if ($errorCode === 10) {
|
} else if ($errorCode === 10) {
|
||||||
//referrals, we switch them off, but then there is AD :)
|
//referrals, we switch them off, but then there is AD :)
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('LDAP error '.$errorMsg.' (' .
|
\OCP\Util::writeLog('user_ldap',
|
||||||
$errorCode.') after calling '.$this->curFunc.
|
'LDAP error '.$errorMsg.' (' .
|
||||||
' with arguments '.print_r($this->curArgs, true));
|
$errorCode.') after calling '.
|
||||||
|
$this->curFunc,
|
||||||
|
\OCP\Util::DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue