chibenwa commented on a change in pull request #925: URL: https://github.com/apache/james-project/pull/925#discussion_r831727008
########## File path: server/data/data-ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyLDAPUser.java ########## @@ -129,11 +129,11 @@ public boolean verifyPassword(String password) { try { BindResult bindResult = connectionPool.bindAndRevertAuthentication(userDN.toString(), password); return bindResult.getResultCode() == ResultCode.SUCCESS; + } catch (LDAPBindException e) { + LOGGER.info("Error binding LDAP for {}: {}", userName.asString(), e.getMessage()); + return false; } catch (Exception e) { - if (e instanceof LDAPBindException) { - LOGGER.info("Error binding LDAP for {}: {}", userName.asString(), e.getMessage()); - } - LOGGER.error("Unexpected error upon authentication", e); + LOGGER.error("Unexpected error upon authenticationfor {}", userName.asString(), e); Review comment: ```suggestion LOGGER.error("Unexpected error upon authentication for {}", userName.asString(), e); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org