diff options
Diffstat (limited to 'apps/user_ldap/lib/User/User.php')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index f6a2d037ea7..8685ba0c60a 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -645,7 +645,13 @@ class User { .' for uid='.$this->uid.'', ['app' => 'user_ldap']); } } - $accountManager->updateAccount($account); // may throw InvalidArgumentException + try { + $accountManager->updateAccount($account); // may throw InvalidArgumentException + } catch (\InvalidArgumentException $e) { + $this->logger->error('invalid data from LDAP: for uid='.$this->uid.'' + , ['app' => 'user_ldap', 'func' => 'updateProfile' + , 'exception' => $e]); + } } /** |