diff --git a/apps/user_ldap/lib/ldap.php b/apps/user_ldap/lib/ldap.php index ee2e336cc9..b63e969912 100644 --- a/apps/user_ldap/lib/ldap.php +++ b/apps/user_ldap/lib/ldap.php @@ -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); } } }