public static ConnectionFactory newLdaptiveConnectionFactory(final AbstractLdapProperties properties) {
        return properties.isDisablePooling() ? newLdaptiveDefaultConnectionFactory(properties) : newLdaptivePooledConnectionFactory(properties);
    }
Returns a pooled connection factory or default connection factory based on {@link AbstractLdapProperties#isDisablePooling()}.

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