public static ConnectionFactory newLdaptiveDefaultConnectionFactory(final AbstractLdapProperties properties) {
        LOGGER.debug("Creating LDAP connection factory for [{}]", properties.getLdapUrl());
        val connectionConfig = newLdaptiveConnectionConfig(properties);
        return new DefaultConnectionFactory(connectionConfig);
    }
New default connection factory.

@param properties LDAP properties
@return the connection factory
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapUtils.java