summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-09-04 09:27:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-21 17:04:00 +0200
commit99c5f2f6ba0af6ce52be0d82ec2794bacc215742 (patch)
treea538978333a21269e985033b853589919fd6ae41 /src/providers/dp_backend.h
parentb5825c74b6bf7a99ae2172392dbecb51179013a6 (diff)
downloadsssd-99c5f2f6ba0af6ce52be0d82ec2794bacc215742.tar.gz
sssd-99c5f2f6ba0af6ce52be0d82ec2794bacc215742.tar.xz
sssd-99c5f2f6ba0af6ce52be0d82ec2794bacc215742.zip
DP: Provide a way to mark subdomain as disabled and auto-enable it later with offline_timeout
https://fedorahosted.org/sssd/ticket/2637 Adds a new Data Provider function be_mark_dom_offline() that is a replacement for be_mark_offline(). When called, the function would either set the whole back end offline, just like be_mark_offline or just set the subdomain status to inactive. When a subdomain is inactive, there is a singleton timed task that would re-set the subdomin after offline_timeout seconds. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index bca0c2f97..4bffcee9e 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -189,6 +189,7 @@ struct be_host_req {
bool be_is_offline(struct be_ctx *ctx);
void be_mark_offline(struct be_ctx *ctx);
+void be_mark_dom_offline(struct sss_domain_info *dom, struct be_ctx *ctx);
int be_add_reconnect_cb(TALLOC_CTX *mem_ctx,
struct be_ctx *ctx,