From 04bc987b29bb4d104a9656539561b3c33dfc76b5 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Thu, 1 Jun 2006 22:53:56 +0000 Subject: r15996: Implement a missing monitor message. rafal (This used to be commit 37ec35672e23c8a3e3f1f44d2fce69a0729519fb) --- source4/libnet/userinfo.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/libnet/userinfo.c') diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c index 75c43f5033..9f1b97b670 100644 --- a/source4/libnet/userinfo.c +++ b/source4/libnet/userinfo.c @@ -24,9 +24,10 @@ #include "includes.h" #include "libcli/composite/composite.h" +#include "libnet/composite.h" #include "librpc/gen_ndr/security.h" #include "libcli/security/security.h" -#include "libnet/composite.h" +#include "libnet/userman.h" #include "libnet/userinfo.h" #include "librpc/gen_ndr/ndr_samr_c.h" @@ -174,6 +175,7 @@ static void userinfo_handler(struct rpc_request *req) struct composite_context *c = req->async.private; struct userinfo_state *s = talloc_get_type(c->private_data, struct userinfo_state); struct monitor_msg msg; + struct msg_rpc_lookup_name *msg_lookup; struct msg_rpc_open_user *msg_open; struct msg_rpc_query_user *msg_query; struct msg_rpc_close_user *msg_close; @@ -182,6 +184,13 @@ static void userinfo_handler(struct rpc_request *req) switch (s->stage) { case USERINFO_LOOKUP: c->status = userinfo_lookup(c, s); + + msg.type = rpc_lookup_name; + msg_lookup = talloc(s, struct msg_rpc_lookup_name); + msg_lookup->rid = s->lookup.out.rids.ids; + msg_lookup->count = s->lookup.out.rids.count; + msg.data = (void*)msg_lookup; + msg.data_size = sizeof(*msg_lookup); break; case USERINFO_OPENUSER: -- cgit