summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2017-11-02 17:14:14 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2017-11-03 21:56:18 +0200
commit46649808918c027865dfaf78869aeeaddf97f47c (patch)
tree8e1641f5ef713df6b27280d9fd318d7da3b8a330
parent6fbf5891e9169142fc0ea37eb8f897a645b82d6f (diff)
downloadslapi-nis-46649808918c027865dfaf78869aeeaddf97f47c.tar.gz
slapi-nis-46649808918c027865dfaf78869aeeaddf97f47c.tar.xz
slapi-nis-46649808918c027865dfaf78869aeeaddf97f47c.zip
back-sch: cancel memberof retrieval in case of a dirsrv shutdownbug-idviews-refresh
Do not wait for SSSD to become online if directory server is going for shutdown. Since it is guaranteed that SSSD will not be able to function with 389-ds offline, it makes no sense to continue a loop.
-rw-r--r--src/back-sch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/back-sch.c b/src/back-sch.c
index f98b0b4..1998765 100644
--- a/src/back-sch.c
+++ b/src/back-sch.c
@@ -507,7 +507,7 @@ backend_set_process_external_members(Slapi_PBlock *pb,
/* This group must exist because it exists in the original tree
* but as dirsrv was restarted, SSSD might still consider its domain offline. */
is_group_exists = backend_retrieve_from_nsswitch(&staged, &cbdata);
- if (!is_group_exists) {
+ if (!is_group_exists && !slapi_is_shutting_down()) {
slapi_log_error(SLAPI_LOG_FATAL, plugin_id,
"group \"%s\" does not exist because SSSD is offline.\n",
staged.name);