public static SearchRequest newLdaptiveSearchRequest(final String baseDn,
                                                         final FilterTemplate filter) {
        return newLdaptiveSearchRequest(baseDn, filter, ReturnAttributes.ALL_USER.value(), ReturnAttributes.ALL_USER.value());
    }
New ldaptive search request.
Returns all attributes.

@param baseDn the base dn
@param filter the filter
@return the search request
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/util/LdapUtils.java