Examples of DirectoryServerException


Examples of org.wso2.carbon.apacheds.exception.DirectoryServerException

    private void configureDirectoryService()
            throws NamingException, DirectoryServerException {

        if (null == this.ldapConfigurations) {
            throw new DirectoryServerException("Directory service is not initialized.");
        }

        System.setProperty("workingDirectory", this.ldapConfigurations.getWorkingDirectory());

        this.service.setShutdownHookEnabled(false);
View Full Code Here

Examples of org.wso2.carbon.apacheds.exception.DirectoryServerException

    protected void initializeLDAPServer()
            throws DirectoryServerException {

        if (null == this.service || null == this.ldapConfigurations) {
            throw new DirectoryServerException(
                    "The default apacheds service is not initialized. " +
                    "Make sure apacheds service is initialized first.");
        }

        this.ldapServer = new LdapServer();

        this.ldapServer.setTransports(new TcpTransport(this.ldapConfigurations.getLdapPort()));

        // set server initial properties
        this.ldapServer.setAllowAnonymousAccess(false);
        this.ldapServer.setMaxTimeLimit(this.ldapConfigurations.getMaxTimeLimit());
        this.ldapServer.setMaxSizeLimit(this.ldapConfigurations.getMaxSizeLimit());
        this.ldapServer.setSaslHost(this.ldapConfigurations.getSaslHostName());
        this.ldapServer.setSaslPrincipal(this.ldapConfigurations.getSaslPrincipalName());

        // add the apacheds service
        this.ldapServer.setDirectoryService(this.service);

        setupSaslMechanisms();

        try {
            this.ldapServer.addExtendedOperationHandler(new StartTlsHandler());
            this.ldapServer.addExtendedOperationHandler(
                    new StoredProcedureExtendedOperationHandler());
        } catch (Exception e) {
            throw new DirectoryServerException("can not add the extension handlers ", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.apacheds.exception.DirectoryServerException

            throws Exception {

        this.schemaZipStore = System.getProperty("schema.zip.store.location");

        if (this.schemaZipStore == null) {
            throw new DirectoryServerException(
                    "Schema Jar repository is not set. Please set schema.jar.location property " +
                    "with proper schema storage");
        }

        if (directoryService != null && directoryService.isStarted()) {
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.