summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 af1b67db9c9..966a3b3456d 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 1fc3ce7304d..8c52df3e16a 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 24b2fbe0762..d142be2b6ec 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 04dcae3d9ae..e03e77e4cc7 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 012c5693a1c..9bc8f0b032a 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_ */