Package org.apache.ldap.server.db

Examples of org.apache.ldap.server.db.DbSearchResult


        NamingEnumeration list = sysRoot.search( "", "(objectClass=*)", controls );

        while ( list.hasMore() )
        {
            DbSearchResult result = ( DbSearchResult ) list.next();

            set.add( result.getName() );
        }

        assertTrue( set.contains( "ou=system" ) );

        assertTrue( set.contains( "ou=groups,ou=system" ) );
View Full Code Here


        HashSet set = new HashSet();
        NamingEnumeration list = sysRootAsNonAdminUser.search( "",
                "(objectClass=*)", controls );
        while ( list.hasMore() )
        {
            DbSearchResult result = ( DbSearchResult ) list.next();
            set.add( result.getName() );
        }

        assertTrue( set.contains( "ou=system" ) );
        assertTrue( set.contains( "ou=groups,ou=system" ) );
        assertFalse( set.contains( "cn=administrators,ou=groups,ou=system" ) );
View Full Code Here

TOP

Related Classes of org.apache.ldap.server.db.DbSearchResult

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.