public SearchResponse executeSearchOperation(
        final String baseDn,
        final FilterTemplate filter,
        final int pageSize) throws LdapException {
        return executeSearchOperation(baseDn, filter, pageSize,
            ReturnAttributes.ALL_USER.value(), ReturnAttributes.ALL_USER.value());
    }
Execute search operation response.

@param baseDn   the base dn
@param filter   the filter
@param pageSize the page size
@return the response
@throws LdapException the ldap exception
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapConnectionFactory.java