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

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


    @Test
    public void testFailDeleteNotAllowedOnNonLeaf() throws Exception
    {
        LdapConnection connection = getAdminConnection( ldapServer );

        AddResponse resp = createSubContext( "ou", "blah" );
        resp = createSubContext( new DN( "ou=blah,ou=system" )"ou", "subctx" );

        DeleteResponse delResp = connection.delete( "ou=blah,ou=system" );
        assertEquals( ResultCodeEnum.NOT_ALLOWED_ON_NON_LEAF, delResp.getLdapResult().getResultCode() );
    }
View Full Code Here


    @Test
    public void testDeleteControl() throws Exception
    {
        LdapConnection connection = getAdminConnection( ldapServer );

        AddResponse resp = createSubContext( "ou", "blah" );

        Entry entry = ( ( SearchResultEntry ) connection.lookup( "ou=blah,ou=system" ) ).getEntry();
        assertNotNull( entry );
        connection.delete( entry.getDn() );
View Full Code Here

            Entry entry = new DefaultClientEntry( new DN( "ou=testou,ou=system" ) );
            entry.add( SchemaConstants.OU_AT, "testou" );
            entry.add( SchemaConstants.OBJECT_CLASS_AT, "organizationalUnit" );
           
            AddResponse resp = connection.add( entry );
           
            if( resp.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS )
            {
                return false;
            }

            connection.delete( entry.getDn() );
View Full Code Here

TOP

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

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.