From b2ed6343cb4650537f199089432f5b6d96dccd6d Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Mon, 25 Jul 2005 22:57:14 +0000 Subject: r8761: Propagate changes in monitor messaging code. rafal (This used to be commit 5be8479d5cf119bcda4046bf1c5d7c3b876e718d) --- source4/libnet/userman.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/libnet/userman.c') diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index c3d1435dfe3..1a40b743528 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -28,6 +28,7 @@ #include "libcli/composite/monitor.h" #include "librpc/gen_ndr/ndr_samr.h" #include "libnet/composite.h" +#include "libnet/userman.h" /* * Composite user add function @@ -73,12 +74,17 @@ static void useradd_handler(struct rpc_request *req) struct composite_context *c = req->async.private; struct useradd_state *s = talloc_get_type(c->private, struct useradd_state); struct monitor_msg msg; + struct msg_rpc_create_user *rpc_create; switch (s->stage) { case USERADD_CREATE: c->status = useradd_create(c, s); + msg.type = rpc_create_user; - msg.data.rpc_create_user.rid = *s->createuser.out.rid; + rpc_create = talloc(s, struct msg_rpc_create_user); + rpc_create->rid = *s->createuser.out.rid; + msg.data = (void*)rpc_create; + msg.data_size = sizeof(*rpc_create); break; } -- cgit v1.2.1