Package org.apache.directory.server.configuration

Examples of org.apache.directory.server.configuration.ApacheDS


            ldapServer = new LdapServer();
            ldapServer.setDirectoryService( directoryService );
            TcpTransport tcpTransportSsl = new TcpTransport( 10636 );
            tcpTransportSsl.enableSSL( true );
            ldapServer.setTransports( new TcpTransport( 10389 ), tcpTransportSsl );
            apacheDS = new ApacheDS( ldapServer );
        }

        if ( layout != null )
        {
            ldapServer.getDirectoryService().setWorkingDirectory( layout.getPartitionsDirectory() );
View Full Code Here


        ClassLoader classLoader = this.getClass().getClassLoader();
        URL configURL = classLoader.getResource( "server.xml" );

        File configF = new File( configURL.toURI() );
        ApplicationContext factory = new FileSystemXmlApplicationContext( configF.toURI().toURL().toString() );
        ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
        File workingDirFile = new File( configF.getParentFile(), "work" );
        apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
    }
View Full Code Here

        ClassLoader classLoader = this.getClass().getClassLoader();
        URL configURL = classLoader.getResource( "serverAuthenticatorInAuthenticationInterceptor.xml" );

        File configF = new File( configURL.toURI() );
        ApplicationContext factory = new FileSystemXmlApplicationContext( configF.toURI().toURL().toString() );
        ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
        File workingDirFile = new File( configF.getParentFile(), "work" );
        apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
       
        List<Interceptor> interceptors = apacheDS.getDirectoryService().getInterceptors();
       
        Map<String, Interceptor> map = new HashMap<String, Interceptor>();
       
        for ( Interceptor interceptor:interceptors )
        {
View Full Code Here

            ClassLoader classLoader = this.getClass().getClassLoader();
            URL configURL = classLoader.getResource( "serverJdbmPartition.xml" );
   
            File configF = new File( configURL.toURI() );
            ApplicationContext factory = new FileSystemXmlApplicationContext( configF.toURI().toURL().toString() );
            ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
            File workingDirFile = new File( configF.getParentFile(), "work" );
            apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
           
            // Now, launch the server, and check that the ObjectClass index has been created in OS' tmp directory
            apacheDS.startup();
           
            File tmpOCdb = new File( tmpDir, "dc.db" );
            assertTrue( tmpOCdb.exists() );
   
            File tmpOClg = new File( tmpDir, "dc.lg" );
            assertTrue( tmpOClg.exists() );
           
            // Shutdown and cleanup
            apacheDS.shutdown();
           
            // Clean the /tmp/objectClass.* files
            tmpOCdb.delete();
            tmpOClg.delete();
        }
View Full Code Here

            ldapServer = new LdapServer();
            ldapServer.setDirectoryService( directoryService );
            TcpTransport tcpTransportSsl = new TcpTransport( 10636 );
            tcpTransportSsl.enableSSL( true );
            ldapServer.setTransports( new TcpTransport( 10389 ), tcpTransportSsl );
            apacheDS = new ApacheDS( ldapServer );
        }

        if ( install != null )
        {
            ldapServer.getDirectoryService().setWorkingDirectory( install.getPartitionsDirectory() );
View Full Code Here

    public void configureLdapServer(int port) {
        ldapService = new LdapServer();
        ldapService.setTransports(new TcpTransport(port));
        ldapService.setDirectoryService(service);

        apacheDs = new ApacheDS(ldapService);
    }
View Full Code Here

            ldapServer = new LdapServer();
            ldapServer.setDirectoryService( directoryService );
            TcpTransport tcpTransportSsl = new TcpTransport( 10636 );
            tcpTransportSsl.enableSSL( true );
            ldapServer.setTransports( new TcpTransport( 10389 ), tcpTransportSsl );
            apacheDS = new ApacheDS( ldapServer );
        }

        if ( install != null )
        {
            ldapServer.getDirectoryService().setWorkingDirectory( install.getPartitionsDirectory() );
View Full Code Here

            LdapServer ldapsServer = new LdapServer();
            ldapsServer.setEnableLdaps( true );
            ldapsServer.setSocketAcceptor( socketAcceptor );
            ldapsServer.setDirectoryService( directoryService );
            ldapsServer.start();
            apacheDS = new ApacheDS( directoryService, ldapServer, ldapsServer );
        }

        if ( install != null )
        {
            apacheDS.getDirectoryService().setWorkingDirectory( install.getPartitionsDirectory() );
View Full Code Here

    {
        ldapService = new LdapServer();
        ldapService.setTransports(new TcpTransport(port));
        ldapService.setDirectoryService(service);

        apacheDs = new ApacheDS(ldapService);
    }
View Full Code Here

    {
        ldapService = new LdapServer();
        ldapService.setTransports(new TcpTransport(port));
        ldapService.setDirectoryService(service);

        apacheDs = new ApacheDS(ldapService);
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.configuration.ApacheDS

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.