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

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