From a0cf9fae22d94ff87fa94f263acbc3dad15b9a2d Mon Sep 17 00:00:00 2001 From: "gabi.beyo" Date: Thu, 11 Apr 2019 16:09:32 +0300 Subject: [PATCH] When in TRACE mode print rootdse info --- .../src/main/java/com/imperva/ddc/core/Driver.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/ddc-core/src/main/java/com/imperva/ddc/core/Driver.java b/source/ddc-core/src/main/java/com/imperva/ddc/core/Driver.java index 85cef7f..f018855 100644 --- a/source/ddc-core/src/main/java/com/imperva/ddc/core/Driver.java +++ b/source/ddc-core/src/main/java/com/imperva/ddc/core/Driver.java @@ -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();