@Override @NotNull public BindRequest createBindRequest() { return new SimpleBindRequest(bindDn, password); } }
/** * {@inheritDoc} */ @Override() public SimpleBindRequest getRebindRequest(final String host, final int port) { return new SimpleBindRequest(bindDN, password, passwordProvider, getControls()); }
/** * {@inheritDoc} */ @Override() public SimpleBindRequest getRebindRequest(final String host, final int port) { return new SimpleBindRequest(bindDN, password, passwordProvider, getControls()); }
/** * Processes a simple bind request with the provided DN and password. Note * that the bind processing will verify that the provided credentials are * valid, but it will not alter the server in any way. * * @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 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)); }
/** * 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)); }
new SimpleBindRequest(bindDN, password, controls));
/** * {@inheritDoc} */ @Override() public SimpleBindRequest duplicate(final Control[] controls) { final SimpleBindRequest bindRequest = new SimpleBindRequest(bindDN, password, passwordProvider, controls); bindRequest.setResponseTimeoutMillis(getResponseTimeoutMillis(null)); return bindRequest; }
new SimpleBindRequest(bindDN, password, controls));
throws LDAPException return bind(new SimpleBindRequest(bindDN, password));
new SimpleBindRequest(bindDN, password, controls));
/** * {@inheritDoc} */ @Override() public SimpleBindRequest duplicate(final Control[] controls) { final SimpleBindRequest bindRequest = new SimpleBindRequest(bindDN, password, passwordProvider, controls); bindRequest.setResponseTimeoutMillis(getResponseTimeoutMillis(null)); return bindRequest; }
/** * Creates a new bind request object from this bind request protocol op. * * @param controls The set of controls to include in the bind request. It * may be empty or {@code null} if no controls should be * included. * * @return The bind request that was created. */ public BindRequest toBindRequest(final Control... controls) { if (credentialsType == CRED_TYPE_SIMPLE) { return new SimpleBindRequest(bindDN, simplePassword.getValue(), controls); } else { return new GenericSASLBindRequest(bindDN, saslMechanism, saslCredentials, controls); } }
/** * Creates a new bind request object from this bind request protocol op. * * @param controls The set of controls to include in the bind request. It * may be empty or {@code null} if no controls should be * included. * * @return The bind request that was created. */ public BindRequest toBindRequest(final Control... controls) { if (credentialsType == CRED_TYPE_SIMPLE) { return new SimpleBindRequest(bindDN, simplePassword.getValue(), controls); } else { return new GenericSASLBindRequest(bindDN, saslMechanism, saslCredentials, controls); } }
throws LDAPException return bind(new SimpleBindRequest(bindDN, password));
BindRequest bindRequest = new SimpleBindRequest( parseJsonNode(node, LDAP_CONFIG_BINDABLE_DB, true).asText(), parseJsonNode(node, LDAP_CONFIG_PASSWORD, true).asText());
SimpleBindRequest bindRequest = new SimpleBindRequest(ldapUser, ldapPassword); try { log.info("Creating LDAP connection pool of size " + poolMaxConns);
bind(new SimpleBindRequest(bindDN, bindPassword));
if (request.getCredentialsType() == BindRequestProtocolOp.CRED_TYPE_SIMPLE) bindRequest = new SimpleBindRequest(request.getBindDN(), request.getSimplePassword().getValue(), controlArray);
new SimpleBindRequest(dn, password, getControls(constraints)); authDN = null; authPW = null;