/** * Processes a simple bind request with the provided DN and password using a * connection from this connection pool. Note that this will impact the state * of the connection in the pool, and therefore this method should only be * used if this connection pool is used exclusively for processing bind * operations, or if the retain identity request control (only available in * the Commercial Edition of the LDAP SDK for use with the Ping Identity, * UnboundID, or Alcatel-Lucent 8661 Directory Server) is included in the bind * request to ensure that the authentication state is not impacted. * * @param bindDN The bind DN for the bind operation. * @param password The password for the simple bind operation. * * @return The result of processing the bind operation. * * @throws LDAPException If the server rejects the bind request, or if a * problem occurs while sending the request or reading * the response. */ public final BindResult bind(final String bindDN, final String password) throws LDAPException { return bind(new SimpleBindRequest(bindDN, password)); }
/** * Processes a simple bind request with the provided DN and password using a * connection from this connection pool. Note that this will impact the state * of the connection in the pool, and therefore this method should only be * used if this connection pool is used exclusively for processing bind * operations, or if the retain identity request control (only available in * the Commercial Edition of the LDAP SDK for use with the Ping Identity, * UnboundID, or Alcatel-Lucent 8661 Directory Server) is included in the bind * request to ensure that the authentication state is not impacted. * * @param bindDN The bind DN for the bind operation. * @param password The password for the simple bind operation. * * @return The result of processing the bind operation. * * @throws LDAPException If the server rejects the bind request, or if a * problem occurs while sending the request or reading * the response. */ public final BindResult bind(final String bindDN, final String password) throws LDAPException { return bind(new SimpleBindRequest(bindDN, password)); }