code: public static SearchRequest newLdaptiveSearchRequest(final String baseDn,
                                                           final SearchFilter filter) {
          return newLdaptiveSearchRequest(baseDn, filter, ReturnAttributes.ALL_USER.value(), ReturnAttributes.ALL_USER.value());
      }
docs: New ldaptive search request.
  Returns all attributes.
  
  @param baseDn the base dn
  @param filter the filter
  @return the search request