summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-22 16:37:41 +0100
committerJeremy Allison <jra@samba.org>2011-04-13 14:13:25 -0700
commit74ea52e3511ae025e81ffb3a1f037015a31d2de7 (patch)
tree5ab3c03e1875637d7a35d1571f33aa8c53789e9f /source3
parent69ba25948a4b559e364e46f6fb09de043151a27e (diff)
downloadsamba-74ea52e3511ae025e81ffb3a1f037015a31d2de7.tar.gz
samba-74ea52e3511ae025e81ffb3a1f037015a31d2de7.tar.bz2
samba-74ea52e3511ae025e81ffb3a1f037015a31d2de7.zip
s3: Add is_domain_online
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_proto.h1
-rw-r--r--source3/winbindd/winbindd_util.c5
2 files changed, 6 insertions, 0 deletions
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)
{