public static SearchOperation newSearchOperation(final String baseDn, final String filterQuery, final String... params) {
        val operation = new SearchOperation();
        operation.setRequest(SearchRequest.builder()
            .dn(baseDn)
            .filter(newSearchFilter(filterQuery, params))
            .returnAttributes(ReturnAttributes.ALL.value())
            .scope(SearchScope.SUBTREE)
            .build());
        return operation;
    }
New search operation .

@param baseDn      the base dn
@param filterQuery the filter query
@param params      the params
@return the search executor
pac4j-config/src/main/java/org/pac4j/config/ldaptive/LdaptiveAuthenticatorBuilder.java