e.printStackTrace();
}
LdapTemplate template = new LdapTemplate(source);
try {
template.authenticate(DistinguishedName.EMPTY_PATH,
new EqualsFilter(configurationModel.getLdapConfiguration()
.getLdapUserId(), "test").toString(), "test");
messages.showMessage(Level.INFO,
_("LDAP connection was successful"));
} catch (Exception e) {