summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-16 13:43:03 +0200
committerVolker Lendecke <vl@samba.org>2009-06-14 11:25:47 +0200
commit14889b1acbefd527623fba74e2d877d51e0fc796 (patch)
treea90a7a39579dd9aad83a580bac8e4c6df7182b38
parentd362313fea447c2bbf3c989ed45537f95653d7dc (diff)
downloadsamba-14889b1acbefd527623fba74e2d877d51e0fc796.tar.gz
samba-14889b1acbefd527623fba74e2d877d51e0fc796.tar.bz2
samba-14889b1acbefd527623fba74e2d877d51e0fc796.zip
Add winbindd_dual_ping to all children
-rw-r--r--source3/winbindd/winbindd_async.c6
-rw-r--r--source3/winbindd/winbindd_domain.c4
-rw-r--r--source3/winbindd/winbindd_idmap.c4
-rw-r--r--source3/winbindd/winbindd_locator.c4
-rw-r--r--source3/winbindd/winbindd_proto.h2
5 files changed, 20 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c
index af1b67db9c..966a3b3456 100644
--- a/source3/winbindd/winbindd_async.c
+++ b/source3/winbindd/winbindd_async.c
@@ -1029,3 +1029,9 @@ void query_user_async(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
do_async_domain(mem_ctx, domain, &request, query_user_recv,
(void *)cont, private_data);
}
+
+enum winbindd_result winbindd_dual_ping(struct winbindd_domain *domain,
+ struct winbindd_cli_state *state)
+{
+ return WINBINDD_OK;
+}
diff --git a/source3/winbindd/winbindd_domain.c b/source3/winbindd/winbindd_domain.c
index 1fc3ce7304..8c52df3e16 100644
--- a/source3/winbindd/winbindd_domain.c
+++ b/source3/winbindd/winbindd_domain.c
@@ -38,6 +38,10 @@ void setup_domain_child(struct winbindd_domain *domain,
static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
{
+ .name = "PING",
+ .struct_cmd = WINBINDD_PING,
+ .struct_fn = winbindd_dual_ping,
+ },{
.name = "LOOKUPSID",
.struct_cmd = WINBINDD_LOOKUPSID,
.struct_fn = winbindd_dual_lookupsid,
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c
index 24b2fbe076..d142be2b6e 100644
--- a/source3/winbindd/winbindd_idmap.c
+++ b/source3/winbindd/winbindd_idmap.c
@@ -525,6 +525,10 @@ enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
{
+ .name = "PING",
+ .struct_cmd = WINBINDD_PING,
+ .struct_fn = winbindd_dual_ping,
+ },{
.name = "DUAL_SID2UID",
.struct_cmd = WINBINDD_DUAL_SID2UID,
.struct_fn = winbindd_dual_sid2uid,
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c
index 04dcae3d9a..e03e77e4cc 100644
--- a/source3/winbindd/winbindd_locator.c
+++ b/source3/winbindd/winbindd_locator.c
@@ -157,6 +157,10 @@ static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain,
static const struct winbindd_child_dispatch_table locator_dispatch_table[] = {
{
+ .name = "PING",
+ .struct_cmd = WINBINDD_PING,
+ .struct_fn = winbindd_dual_ping,
+ },{
.name = "DSGETDCNAME",
.struct_cmd = WINBINDD_DSGETDCNAME,
.struct_fn = dual_dsgetdcname,
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 012c5693a1..9bc8f0b032 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -594,5 +594,7 @@ struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
NTSTATUS wb_ping_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
struct winbindd_response **presp);
+enum winbindd_result winbindd_dual_ping(struct winbindd_domain *domain,
+ struct winbindd_cli_state *state);
#endif /* _WINBINDD_PROTO_H_ */