Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ZEPPELIN-5567] add Logging to LdapRealm on login Error
  • Loading branch information
johannesschillinger-dm committed Oct 19, 2021
1 parent a0da85d commit fc78cc9
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -206,7 +206,12 @@ public LdapRealm() {
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)
throws org.apache.shiro.authc.AuthenticationException {
return super.doGetAuthenticationInfo(token);
try{
return super.doGetAuthenticationInfo(token);
}catch (Exception e){
LOGGER.warn(String.format("Encountered Error while authenticating %s: %s", token.getPrincipal(), e.getMessage()));
throw e;
}
}

@Override
Expand Down

0 comments on commit fc78cc9

Please sign in to comment.