federation/ldap/src/main/java/org/keycloak/federation/ldap/LDAPIdentityStoreRegistry.java
/**
     * @param ldapConfig from realm
     * @return PartitionManager instance based on LDAP store
     */
@param ldapConfig from realm
@return PartitionManager instance based on LDAP store
@param ldapConfig from realm @return PartitionManager instance based on LDAP store
public static LDAPIdentityStore createLdapIdentityStore(Map<String,String> ldapConfig) {
        LDAPConfig cfg = new LDAPConfig(ldapConfig);
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.authentication", "none simple");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.initsize", "1");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.maxsize", "1000");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.prefsize", "5");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.timeout", "300000");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.protocol", "plain");
        checkSystemProperty("com.sun.jndi.ldap.connect.pool.debug", "off");
        return new LDAPIdentityStore(cfg);
    }
public static LDAPIdentityStore createLdapIdentityStore ( Map < String , String > ldapConfig ) { LDAPConfig cfg = new LDAPConfig ( ldapConfig ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.authentication" , "none simple" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.initsize" , "1" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.maxsize" , "1000" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.prefsize" , "5" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.timeout" , "300000" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.protocol" , "plain" ) ; checkSystemProperty ( "com.sun.jndi.ldap.connect.pool.debug" , "off" ) ; return new LDAPIdentityStore ( cfg ) ; }
@param ldapConfig from realm
 @return PartitionManager instance based on LDAP store
@param ldapConfig from realm @return PartitionManager instance based on LDAP store