Blame SOURCES/slapi-0017-back-sch-cancel-memberof-retrieval-in-case-of-a-dirs.patch
|
|
9eb798 |
From 46649808918c027865dfaf78869aeeaddf97f47c Mon Sep 17 00:00:00 2001
|
|
|
9eb798 |
From: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
9eb798 |
Date: Thu, 2 Nov 2017 17:14:14 +0200
|
|
|
9eb798 |
Subject: [PATCH 17/17] back-sch: cancel memberof retrieval in case of a dirsrv
|
|
|
9eb798 |
shutdown
|
|
|
9eb798 |
|
|
|
9eb798 |
Do not wait for SSSD to become online if directory server is going
|
|
|
9eb798 |
for shutdown. Since it is guaranteed that SSSD will not be able to
|
|
|
9eb798 |
function with 389-ds offline, it makes no sense to continue a loop.
|
|
|
9eb798 |
---
|
|
|
9eb798 |
src/back-sch.c | 2 +-
|
|
|
9eb798 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9eb798 |
|
|
|
9eb798 |
diff --git a/src/back-sch.c b/src/back-sch.c
|
|
|
9eb798 |
index f98b0b4..1998765 100644
|
|
|
9eb798 |
--- a/src/back-sch.c
|
|
|
9eb798 |
+++ b/src/back-sch.c
|
|
|
9eb798 |
@@ -507,7 +507,7 @@ backend_set_process_external_members(Slapi_PBlock *pb,
|
|
|
9eb798 |
/* This group must exist because it exists in the original tree
|
|
|
9eb798 |
* but as dirsrv was restarted, SSSD might still consider its domain offline. */
|
|
|
9eb798 |
is_group_exists = backend_retrieve_from_nsswitch(&staged, &cbdata);
|
|
|
9eb798 |
- if (!is_group_exists) {
|
|
|
9eb798 |
+ if (!is_group_exists && !slapi_is_shutting_down()) {
|
|
|
9eb798 |
slapi_log_error(SLAPI_LOG_FATAL, plugin_id,
|
|
|
9eb798 |
"group \"%s\" does not exist because SSSD is offline.\n",
|
|
|
9eb798 |
staged.name);
|
|
|
9eb798 |
--
|
|
|
9eb798 |
2.13.6
|
|
|
9eb798 |
|