/** * Prepare a new LDAP connection. * * @param ldapURL the ldap uRL * @return connection factory */ protected ConnectionFactory prepareConnectionFactory(final String ldapURL) { final ConnectionConfig cc = ConnectionConfig.newConnectionConfig(this.connectionConfig); cc.setLdapUrl(ldapURL); return new DefaultConnectionFactory(cc); }
@Override public ConnectionFactory getConnectionFactory(final ConnectionConfig config, final String ldapUrl) { final ConnectionConfig cc = ConnectionConfig.newConnectionConfig(config); cc.setLdapUrl(ldapUrl); return new DefaultConnectionFactory(cc); } };
/** * Prepare a new LDAP connection. * * @param ldapURL the ldap uRL * @return connection factory */ protected ConnectionFactory prepareConnectionFactory(final String ldapURL) { val cc = ConnectionConfig.newConnectionConfig(this.connectionConfig); cc.setLdapUrl(ldapURL); return new DefaultConnectionFactory(cc); } }