From 74ea52e3511ae025e81ffb3a1f037015a31d2de7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 22 Mar 2011 16:37:41 +0100 Subject: s3: Add is_domain_online Signed-off-by: Jeremy Allison --- source3/winbindd/winbindd_proto.h | 1 + source3/winbindd/winbindd_util.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'source3') diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 3a736699bf..90a17f0564 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -429,6 +429,7 @@ void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain); void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain); void set_auth_errors(struct winbindd_response *resp, NTSTATUS result); bool is_domain_offline(const struct winbindd_domain *domain); +bool is_domain_online(const struct winbindd_domain *domain); bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr, struct dom_sid **sids, uint32_t *num_sids); diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index b43d7b826f..9fbc778e04 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -1371,6 +1371,11 @@ bool is_domain_offline(const struct winbindd_domain *domain) return !domain->online; } +bool is_domain_online(const struct winbindd_domain *domain) +{ + return !is_domain_offline(domain); +} + bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr, struct dom_sid **sids, uint32_t *num_sids) { -- cgit