Blame SOURCES/0039-BE_REFRESH-Do-not-try-to-refresh-domains-from-other-.patch

bcb322
From 154d73a06f1eb1fda85da54034ad79ba9bcd485b Mon Sep 17 00:00:00 2001
bcb322
From: Lukas Slebodnik <lslebodn@redhat.com>
bcb322
Date: Wed, 22 Jan 2020 09:43:21 +0000
bcb322
Subject: [PATCH] BE_REFRESH: Do not try to refresh domains from other backends
bcb322
bcb322
We cannot refresh domains from different sssd_be processes.
bcb322
We can refresh just subdomains
bcb322
bcb322
Resolves:
bcb322
https://pagure.io/SSSD/sssd/issue/4142
bcb322
bcb322
Merges: https://pagure.io/SSSD/sssd/pull-request/4139
bcb322
bcb322
Reviewed-by: Sumit Bose <sbose@redhat.com>
bcb322
(cherry picked from commit 007d5b79b7aef67dd843ed9a3b65095faaeb580f)
bcb322
---
bcb322
 src/providers/be_refresh.c | 4 ++++
bcb322
 1 file changed, 4 insertions(+)
bcb322
bcb322
diff --git a/src/providers/be_refresh.c b/src/providers/be_refresh.c
bcb322
index 8fcfb86b4..fd63dae66 100644
bcb322
--- a/src/providers/be_refresh.c
bcb322
+++ b/src/providers/be_refresh.c
bcb322
@@ -388,6 +388,10 @@ static errno_t be_refresh_step(struct tevent_req *req)
bcb322
         if (state->index == BE_REFRESH_TYPE_SENTINEL) {
bcb322
             state->domain = get_next_domain(state->domain,
bcb322
                                             SSS_GND_DESCEND);
bcb322
+            /* we can update just subdomains */
bcb322
+            if (state->domain != NULL && !IS_SUBDOMAIN(state->domain)) {
bcb322
+                break;
bcb322
+            }
bcb322
             state->index = 0;
bcb322
             continue;
bcb322
         }
bcb322
-- 
bcb322
2.21.3
bcb322