dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
Blob Blame History Raw
From 0ca64be4d6d3080e0c344f5ad61545339f64a2aa Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Fri, 5 Jul 2019 10:09:15 +0200
Subject: [PATCH] IPA: Allow paging when fetching external groups

For some reason (I guess a mistake during refactoring..) the LDAP search
request that fetches the external groups does not enable the paging
control. This means that the number of external groups that SSSD can
fetch is limited to 2000.

Resolves: https://pagure.io/SSSD/sssd/issue/4058

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit c2e24df4320d46577aca8d1268f0336af443d541)
---
 src/providers/ipa/ipa_subdomains_ext_groups.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/ipa/ipa_subdomains_ext_groups.c b/src/providers/ipa/ipa_subdomains_ext_groups.c
index 63ff7c7d7..75963bef1 100644
--- a/src/providers/ipa/ipa_subdomains_ext_groups.c
+++ b/src/providers/ipa/ipa_subdomains_ext_groups.c
@@ -541,7 +541,7 @@ static void ipa_get_ad_memberships_connect_done(struct tevent_req *subreq)
     subreq = sdap_search_bases_send(state, state->ev, state->sdap_id_ctx->opts,
                             sdap_id_op_handle(state->sdap_op),
                             state->sdap_id_ctx->opts->sdom->group_search_bases,
-                            NULL, false,
+                            NULL, true,
                             dp_opt_get_int(state->sdap_id_ctx->opts->basic,
                                             SDAP_ENUM_SEARCH_TIMEOUT),
                             IPA_EXT_GROUPS_FILTER,
-- 
2.20.1