Partial OPENDJ-2625 Convert all code that uses JNDI to use the SDK instead
Remove mentions of JNDI
| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2016 ForgeRock AS. |
| | | */ |
| | | package org.forgerock.opendj.config; |
| | | |
| | |
| | | * A strategy for serializing managed object paths. |
| | | * <p> |
| | | * This interface provides a generic means for serializing managed object paths |
| | | * into application specific forms. For example, a JNDI client would use this |
| | | * interface to construct <code>LdapName</code> objects from a path. Similarly, |
| | | * into application specific forms. For example, a client would use this |
| | | * interface to construct {@code DN} objects from a path. Similarly, |
| | | * on the server side, a serialization strategy is used to construct |
| | | * <code>DN</code> instances from a path. |
| | | * <p> |
| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2016 ForgeRock AS. |
| | | */ |
| | | |
| | | |
| | | |
| | | /** |
| | | * LDAP configuration transport implementation. |
| | | * <p> |
| | | * This implementation uses JNDI for all communication. It is expected |
| | | * that, at some point in the future, we will replace this implementation |
| | | * with our own LDAP client SDK based implementation. |
| | | */ |
| | | /** LDAP configuration transport implementation. */ |
| | | package org.forgerock.opendj.config.client.ldap; |
| | | |
| | |
| | | * Constructor of the ADSContext. |
| | | * |
| | | * @param connectionWrapper |
| | | * provide connection either via JNDI or Ldap Connection |
| | | * provide an Ldap Connection |
| | | */ |
| | | public ADSContext(ConnectionWrapper connectionWrapper) |
| | | { |
| | |
| | | @param serverProperties Properties of the server being registered to which |
| | | the instance key entry belongs. |
| | | @param serverEntryDn The server's ADS entry DN. |
| | | @throws ADSContextException In case some JNDI operation fails or there is a |
| | | @throws ADSContextException In case some LDAP operation fails or there is a |
| | | problem getting the instance public key certificate ID. |
| | | */ |
| | | void registerInstanceKeyCertificate(ConnectionWrapper conn, Map<ServerProperty, Object> serverProperties, |
| | |
| | | searchForCustomFilter(remoteDn, conn); |
| | | } |
| | | |
| | | String filter = getJNDIFilter(url); |
| | | String filter = getFilter(url); |
| | | |
| | | SearchRequest request = newSearchRequest(remoteDn, url.getScope(), filter, controller.getAttrsForBlackSearch()) |
| | | .setSizeLimit(controller.getMaxChildren()); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the filter to be used in a JNDI request based on the information |
| | | * of an LDAP URL. |
| | | * @param url the LDAP URL. |
| | | * Returns the filter to be used in a LDAP request based on the information of an LDAP URL. |
| | | * |
| | | * @param url |
| | | * the LDAP URL. |
| | | * @return the filter. |
| | | */ |
| | | private String getJNDIFilter(LDAPURL url) |
| | | private String getFilter(LDAPURL url) |
| | | { |
| | | String filter = url.getRawFilter(); |
| | | if (filter == null) |
| | |
| | | * @param info the control panel information. |
| | | * @param dlg the progress dialog where the task progress will be displayed. |
| | | * @param newEntry the entry containing the new values. |
| | | * @param oldEntry the old entry as we retrieved using JNDI. |
| | | * @param oldEntry the old entry as we retrieved using LDAP. |
| | | * @param controller the BrowserController. |
| | | * @param path the TreePath corresponding to the node in the tree that we |
| | | * want to modify. |