implement NDR_WINBIND_PING
authorStefan Metzmacher <metze@sernet.de>
Mon, 3 Sep 2007 07:27:00 +0000 (09:27 +0200)
committerStefan Metzmacher <metze@sernet.de>
Thu, 11 Oct 2007 15:21:45 +0000 (17:21 +0200)
metze

source/winbindd/winbindd.c

index 12ff28d..d8cb554 100644 (file)
@@ -388,11 +388,26 @@ static void process_struct_request(struct winbindd_cli_state *state)
        }
 }
 
+static void winbindd_ndr_ping(struct winbindd_cli_state *state)
+{
+       struct winbind_ping *r;
+       r = talloc_get_type_abort(state->c.ndr.r, struct winbind_ping);
+
+       DEBUG(3, ("winbindd_ndr_ping()\n"));
+
+       r->out.result = WINBIND_STATUS_OK;
+
+       winbindd_reply_ndr_ok(state);
+}
 
 static const struct winbind_ndr_cmd {
        uint32 opnum;
        void (*fn)(struct winbindd_cli_state *state);
 } ndr_cmd_table[] = {
+       {
+               .opnum  = NDR_WINBIND_PING,
+               .fn     = winbindd_ndr_ping
+       }
 };
 
 static void request_reset(struct winbindd_cli_state *state, bool wait_for_request);