Add winbindd_dual_ping to all children
authorVolker Lendecke <vl@samba.org>
Sat, 16 May 2009 11:43:03 +0000 (13:43 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 14 Jun 2009 09:25:47 +0000 (11:25 +0200)
source3/winbindd/winbindd_async.c
source3/winbindd/winbindd_domain.c
source3/winbindd/winbindd_idmap.c
source3/winbindd/winbindd_locator.c
source3/winbindd/winbindd_proto.h

index af1b67db9c9d67ab41ac94db67e2277b5ca0d4d6..966a3b3456d8aa8a4de0806609172416b1d36807 100644 (file)
@@ -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;
+}
index 1fc3ce7304dc84c3395814caf114ead5b5d43ed3..8c52df3e16a180025b435c8438483c73d8a8cb35 100644 (file)
@@ -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,
index 24b2fbe0762dedb6a91d3d424b2da9fa9d53933b..d142be2b6ecc1595bb2d6c0a381e7a3caa4dec7c 100644 (file)
@@ -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,
index 04dcae3d9aeb13b8bb436909b208eb8ee3cf0da6..e03e77e4cc74791b3cb4d32650d0550ff03d3d8b 100644 (file)
@@ -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,
index 012c5693a1ca296b3f4d83bc9d210ea939ae2fc6..9bc8f0b032a79465203bc7b9ff00d70285360280 100644 (file)
@@ -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_  */