Examples of LdapCoreSessionConnection


Examples of org.apache.directory.server.core.LdapCoreSessionConnection


    @Before
    public void setUp() throws Exception
    {
        conn = new LdapCoreSessionConnection( service );

        enableKerberosSchema();
    }
View Full Code Here

Examples of org.apache.directory.server.core.LdapCoreSessionConnection

        BindResponseHolder holder = null;
        BindResponse resp = null;

        try
        {
            LdapCoreSessionConnection connection = new LdapCoreSessionConnection( dirService );

            resp = connection.bind( bindReq );

            holder = new BindResponseHolder( resp, connection );
        }
        catch ( Exception e )
        {
View Full Code Here

Examples of org.apache.directory.server.core.LdapCoreSessionConnection

    public ReplicaDitStoreUtil( DirectoryService dirService ) throws Exception
    {
        this.adminSession = dirService.getAdminSession();
        this.schemaManager = dirService.getSchemaManager();
        coreConnection = new LdapCoreSessionConnection( adminSession );

        init();
    }
View Full Code Here

Examples of org.apache.directory.server.core.LdapCoreSessionConnection

    public static LdapConnection getConnectionAs( DirectoryService dirService, Dn dn, String password ) throws Exception
    {
        Object connectionObj = LdapConnectionFactory.getCoreSessionConnection();

        LdapCoreSessionConnection coreConnection = ( LdapCoreSessionConnection ) connectionObj;
        coreConnection.setDirectoryService( dirService );

        coreConnection.bind( dn, password );

        return coreConnection;
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection

     * Test for DIRSERVER-1922
     */
    @Test
    public void testNotEvaluator() throws Exception
    {
        LdapConnection con = new LdapCoreSessionConnection( service.getAdminSession() );

        EntryCursor cursor = con.search( "ou=groups,ou=system", "(!(gidNumber=00001))", SearchScope.ONELEVEL, SchemaConstants.ALL_ATTRIBUTES_ARRAY );

        int count = 0;
        while ( cursor.next() )
        {
            count++;
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection


    @Before
    public void setUp() throws Exception
    {
        conn = new LdapCoreSessionConnection( service );

        enableKerberosSchema();
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection

     * @exception If the connection could not be established.
     */
    public static LdapConnection getConnectionAs( DirectoryService dirService, Dn dn, String password )
        throws Exception
    {
        LdapCoreSessionConnection connection = new LdapCoreSessionConnection();

        connection.setDirectoryService( dirService );

        connection.bind( dn, password );

        return connection;
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection

    @Test
    public void testGetRootDSEAnonymousNoAccessControl() throws Exception
    {
        DirectoryService service = getService();
        service.setAccessControlEnabled( false );
        LdapCoreSessionConnection connection = new LdapCoreSessionConnection( service );

        Entry rootDse = connection.getRootDse();

        assertNotNull( rootDse );
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection

    @Test
    public void testGetRootDSEAnonymousWithAccessControl() throws Exception
    {
        DirectoryService service = getService();
        service.setAccessControlEnabled( true );
        LdapCoreSessionConnection connection = new LdapCoreSessionConnection( service );

        Entry rootDse = connection.getRootDse();

        assertNotNull( rootDse );
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.LdapCoreSessionConnection

    @Test
    public void testGetRootDSEAnonymousNoAccessControl() throws Exception
    {
        DirectoryService service = getService();
        service.setAccessControlEnabled( false );
        LdapCoreSessionConnection connection = new LdapCoreSessionConnection( service );
        connection.bind( "", "" );

        Entry rootDse = connection.getRootDse();

        assertNotNull( rootDse );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.