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