Blame SOURCES/0047-BE-Enable-refresh-for-multiple-domains.patch

5fca41
From 896cc774f959b1b6ee1f0c409fa837ad64ee52d4 Mon Sep 17 00:00:00 2001
5fca41
From: Jakub Hrozek <jhrozek@redhat.com>
5fca41
Date: Wed, 24 Apr 2019 21:09:53 +0200
5fca41
Subject: [PATCH 47/64] BE: Enable refresh for multiple domains
5fca41
5fca41
Descend into subdomains on back end refresh and make sure to start from
5fca41
users again.
5fca41
5fca41
Related:
5fca41
https://pagure.io/SSSD/sssd/issue/4012
5fca41
5fca41
Reviewed-by: Sumit Bose <sbose@redhat.com>
5fca41
(cherry picked from commit 1a08b53defa7f921a9b0f9e839ca90f91b5f86d2)
5fca41
5fca41
Reviewed-by: Sumit Bose <sbose@redhat.com>
5fca41
---
5fca41
 src/providers/be_refresh.c | 4 +++-
5fca41
 1 file changed, 3 insertions(+), 1 deletion(-)
5fca41
5fca41
diff --git a/src/providers/be_refresh.c b/src/providers/be_refresh.c
5fca41
index c6bb66b68..02e478c95 100644
5fca41
--- a/src/providers/be_refresh.c
5fca41
+++ b/src/providers/be_refresh.c
5fca41
@@ -255,7 +255,9 @@ static errno_t be_refresh_step(struct tevent_req *req)
5fca41
 
5fca41
         /* if not found than continue with next domain */
5fca41
         if (state->index == BE_REFRESH_TYPE_SENTINEL) {
5fca41
-            state->domain = get_next_domain(state->domain, 0);
5fca41
+            state->domain = get_next_domain(state->domain,
5fca41
+                                            SSS_GND_DESCEND);
5fca41
+            state->index = 0;
5fca41
             continue;
5fca41
         }
5fca41
 
5fca41
-- 
5fca41
2.20.1
5fca41