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

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