Skip to content

Commit

Permalink
[Minor] Update logging in BaseLdapPrivilegeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Oct 9, 2023
1 parent be0c3a8 commit 87a90b5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ protected User checkCredentialsAndUserState(String username, char[] password) th

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 {
Expand Down

0 comments on commit 87a90b5

Please sign in to comment.