summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider_fo.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-11-19 21:11:26 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-01 16:16:01 -0500
commitc8708cd958c633cc3c57a3460bdb15391200e1e1 (patch)
tree955f8122c00131a5d0790e6ea1df203db2e65818 /src/providers/data_provider_fo.c
parentcb57f38188a761c3654c5a7aeb5adaae23bf30d5 (diff)
downloadsssd-c8708cd958c633cc3c57a3460bdb15391200e1e1.tar.gz
sssd-c8708cd958c633cc3c57a3460bdb15391200e1e1.tar.xz
sssd-c8708cd958c633cc3c57a3460bdb15391200e1e1.zip
Run checks before resetting offline state
Before setting the backend to online during a reset offline request the check_online method if the ID provider is called. If the check_online method returns that the ID provider is still not reachable the backend stays offline. Otherwise the backend is switched to online and the related callbacks are run. Additionally the check online test is called during the res_init request because a change in /etc/resolve.conf might also make a server reachable which was assumed offline before.
Diffstat (limited to 'src/providers/data_provider_fo.c')
-rw-r--r--src/providers/data_provider_fo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/data_provider_fo.c b/src/providers/data_provider_fo.c
index 8617cd236..0b4b24349 100644
--- a/src/providers/data_provider_fo.c
+++ b/src/providers/data_provider_fo.c
@@ -512,3 +512,8 @@ int be_fo_run_callbacks_at_next_request(struct be_ctx *ctx,
return EOK;
}
+void reset_fo(struct be_ctx *be_ctx)
+{
+ fo_reset_services(be_ctx->be_fo->fo_ctx);
+}
+