Examples of LDAPConnectionContext


Examples of org.wso2.carbon.user.core.ldap.LDAPConnectionContext

    private static final String CN_ATTRIBUTE_NAME = "cn";

    public CommonHybridLDAPTenantManager(OMElement omElement, Map<String, Object> properties)
            throws Exception {
        super(omElement, properties);
        LDAPConnectionContext ldapConnectionSource = (LDAPConnectionContext) properties.get(
                UserCoreConstants.LDAP_CONNECTION_SOURCE);
        initialDirContext = ldapConnectionSource.getContext();
        tenantMgtConfig = (TenantMgtConfiguration) properties.get(
                UserCoreConstants.TENANT_MGT_CONFIGURATION);

        realmConfig = (RealmConfiguration) properties.get(UserCoreConstants.REALM_CONFIGURATION);
    }
View Full Code Here

Examples of org.wso2.carbon.user.core.ldap.LDAPConnectionContext

        LDAP user store is used.*/

        if (bootstrapRealmConfig.getUserStoreProperty(LDAPConstants.CONNECTION_URL) != null) {
            /*if LDAP is being used as the user-store, we create connection to LDAP server here
            and pass it to both tenant manager and user store manager.*/
            ldapConnectionSource = new LDAPConnectionContext(bootstrapRealmConfig);
            properties.put(UserCoreConstants.LDAP_CONNECTION_SOURCE, ldapConnectionSource);
        }

        //this.tenantManager = this.initializeTenantManger(this.getTenantConfigurationElement(bc));
        this.tenantManager = this.initializeTenantManger(this.tenantMgtConfiguration);
View Full Code Here

Examples of org.wso2.carbon.user.core.ldap.LDAPConnectionContext

        this.bootstrapRealmConfig = realmConfig;
        this.dataSource = DatabaseUtil.getRealmDataSource(bootstrapRealmConfig);
        properties.put(UserCoreConstants.DATA_SOURCE, dataSource);
        //creating ldap connection if aaplicable, as described in other constructor.
        if (bootstrapRealmConfig.getUserStoreProperty(LDAPConstants.CONNECTION_URL) != null) {
            ldapConnectionSource = new LDAPConnectionContext(bootstrapRealmConfig);
            properties.put(UserCoreConstants.LDAP_CONNECTION_SOURCE, ldapConnectionSource);
        }
        this.tenantManager = tenantManager;
        bootstrapRealm = initializeRealm(bootstrapRealmConfig, 0);
    }
View Full Code Here

Examples of org.wso2.carbon.user.core.ldap.LDAPConnectionContext

    private RealmConfiguration realmConfiguration;

    public LDAPServerStoreManager(RealmConfiguration realmConfig) {

        this.realmConfiguration = realmConfig;
        this.connectionSource = new LDAPConnectionContext(realmConfig);
    }
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.