/** * Check if the LDAP parameters are correct to bind to a LDAP server. if authenticate argument is true, it will also * check if the authentication against the LDAP server succeeds * * @param authenticate Indicates if authentication against LDAP should be checked. * @since 6.0 */ public void checkLdapConnection(String ldapUrl, String ldapBindDn, String ldapBindPwd, boolean authenticate) throws NamingException { checkLdapConnection(getContextEnv(ldapUrl, ldapBindDn, ldapBindPwd, authenticate)); }
Exception error = null; try { setupConfigGenerator.checkLdapConnection(ldapUrl, null, null, false); } catch (NamingException e) { errorLabel = ERROR_LDAP_CONNECTION;
Exception error = null; try { setupConfigGenerator.checkLdapConnection(ldapUrl, null, null, false); } catch (NamingException e) { errorLabel = ERROR_LDAP_CONNECTION;
Exception error = null; try { setupConfigGenerator.checkLdapConnection(ldapUrl, ldapBindDn, ldapBindPwd, true); } catch (NamingException e) { if (e instanceof AuthenticationException) {
Exception error = null; try { setupConfigGenerator.checkLdapConnection(ldapUrl, ldapBindDn, ldapBindPwd, true); } catch (NamingException e) { if (e instanceof AuthenticationException) {