[Minor] Update logging in BaseLdapPrivilegeHandler

This commit is contained in:
Robert von Burg 2023-10-09 17:23:56 +02:00
parent be0c3a806c
commit 87a90b5a12
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 4 additions and 2 deletions

View File

@ -129,9 +129,11 @@ public abstract class BaseLdapPrivilegeHandler extends DefaultPrivilegeHandler {
return user;
} catch (AccessDeniedException e) {
throw e;
} catch (Exception e) {
logger.error("Could not login with user: " + username + this.domain + " on Ldap", e);
throw new AccessDeniedException("Could not login with user: " + username + this.domain + " on Ldap", e);
logger.error("Could not login with user: " + username + " on Ldap", e);
throw new AccessDeniedException("Could not login with user: " + username + " on Ldap", e);
} finally {
if (ctx != null) {
try {