Package org.apache.directory.ldap.client.api.message

Examples of org.apache.directory.ldap.client.api.message.BindRequest


    public BindResponse bind() throws LdapException, IOException
    {
        LOG.debug( "Anonymous Bind request" );

        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setName( StringTools.EMPTY );
        bindRequest.setCredentials( StringTools.EMPTY_BYTES );

        return bind( bindRequest );
    }
View Full Code Here


    public BindFuture bindAsync() throws LdapException, IOException
    {
        LOG.debug( "Anonymous Bind request" );

        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setName( StringTools.EMPTY );
        bindRequest.setCredentials( StringTools.EMPTY_BYTES );

        return bindAsync( bindRequest );
    }
View Full Code Here

    public BindResponse bind( String name, String credentials ) throws LdapException, IOException
    {
        LOG.debug( "Bind request : {}", name );

        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setName( name );
        bindRequest.setCredentials( StringTools.getBytesUtf8( credentials ) );

        return bind( bindRequest );
    }
View Full Code Here

    public BindFuture bindAsync( String name, String credentials ) throws LdapException, IOException
    {
        LOG.debug( "Bind request : {}", name );
       
        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setName( name );
        bindRequest.setCredentials( StringTools.getBytesUtf8( credentials ) );

        return bindAsync( bindRequest );
    }
View Full Code Here

    public BindResponse bind( DN name, String credentials ) throws LdapException, IOException
    {
        LOG.debug( "Bind request : {}", name );

        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setCredentials( StringTools.getBytesUtf8( credentials ) );

        if ( name == null )
        {
            bindRequest.setName( StringTools.EMPTY );
        }
        else
        {
            bindRequest.setName( name.getName() );
        }
       
        return bind( bindRequest );
    }
View Full Code Here

    public BindFuture bindAsync( DN name, String credentials ) throws LdapException, IOException
    {
        LOG.debug( "Bind request : {}", name );

        // Create the BindRequest
        BindRequest bindRequest = new BindRequest();
        bindRequest.setCredentials( StringTools.getBytesUtf8( credentials ) );

        if ( name == null )
        {
            bindRequest.setName( StringTools.EMPTY );
        }
        else
        {
            bindRequest.setName( name.getName() );
        }
       
        return bindAsync( bindRequest );
    }
View Full Code Here

        int i = 0;
        int nbLoop = 10;

        for ( ; i < nbLoop; i++)
        {
            BindRequest bindRequest = new BindRequest();
            bindRequest.setName( "uid=admin,ou=system" );
            bindRequest.setCredentials( "secret" );
           
            BindFuture bindFuture = connection.bindAsync( bindRequest );
           
            try
            {
View Full Code Here

                    next.bind( opContext );
                }
            } );
           
            // Send another BindRequest
            BindRequest bindRequest = new BindRequest();
            bindRequest.setName( "uid=admin,ou=system" );
            bindRequest.setCredentials( "secret" );
           
            BindFuture bindFuture = connection.bindAsync( bindRequest );
           
            // Wait a bit to be sure the server is processing the bind request
            Thread.sleep( 200 );
View Full Code Here

TOP

Related Classes of org.apache.directory.ldap.client.api.message.BindRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.