/** * {@inheritDoc} */ @Override public BindRequest setDn( Dn dn ) { getDecorated().setDn( dn ); return this; }
/** * {@inheritDoc} */ @Override public BindRequest setDn( Dn dn ) { getDecorated().setDn( dn ); return this; }
/** * {@inheritDoc} */ @Override public BindRequest setDn( Dn dn ) { getDecorated().setDn( dn ); return this; }
/** * {@inheritDoc} */ @Override public BindRequest setDn( Dn dn ) { getDecorated().setDn( dn ); return this; }
/** * {@inheritDoc} */ @Override public void bind( Dn name ) throws LdapException { byte[] credBytes = Strings.EMPTY_BYTES; BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * {@inheritDoc} */ @Override public void bind( Dn name ) throws LdapException { byte[] credBytes = Strings.EMPTY_BYTES; BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * {@inheritDoc} */ @Override public void bind( Dn name ) throws LdapException { byte[] credBytes = Strings.EMPTY_BYTES; BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * {@inheritDoc} */ @Override public void bind( Dn name, String credentials ) throws LdapException { byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials ); BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * {@inheritDoc} */ @Override public void bind( Dn name, String credentials ) throws LdapException { byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials ); BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * {@inheritDoc} */ @Override public void bind( Dn name, String credentials ) throws LdapException { byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials ); BindRequest bindRequest = new BindRequestImpl(); bindRequest.setDn( name ); bindRequest.setCredentials( credBytes ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }
/** * Calls the PoolMgr to perform an LDAP bind for a user/password combination. This function is valid * if and only if the user entity is a member of the USERS data set. * * @param connection connection to ldap server. * @param szUserDn contains the LDAP dn to the user entry in String format. * @param password contains the password in clear text. * @return bindResponse contains the result of the operation. * @throws LdapException in the event of LDAP error. */ protected BindResponse bind( LdapConnection connection, String szUserDn, String password ) throws LdapException { COUNTERS.incrementBind(); Dn userDn = new Dn( szUserDn ); BindRequest bindReq = new BindRequestImpl(); bindReq.setDn( userDn ); bindReq.setCredentials( password ); bindReq.addControl( PP_REQ_CTRL ); return connection.bind( bindReq ); }
bindRequest.setDn( bindDn );