Skip to content

Commit

Permalink
When in TRACE mode print rootdse info
Browse files Browse the repository at this point in the history
  • Loading branch information
gabibeyo committed Apr 11, 2019
1 parent d513615 commit a0cf9fa
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ else if (accountNameType == AccountNameType.DN)
throw new LdapException(createLdapErrorMessage(bindResponse));
}
}

try {
if (LOGGER.isTraceEnabled())
LOGGER.trace(connection.getRootDse().toString());
} catch (Exception e) { /*DO NOTHING*/ }


LOGGER.debug("Ldap Connection to " + host + " succeeded.");
} catch (LdapAuthenticationException e) {
String error = "Ldap Connection to " + host + " failed: " + e.toString();
Expand Down

0 comments on commit a0cf9fa

Please sign in to comment.