summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-06-01 22:53:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:47 -0500
commit04bc987b29bb4d104a9656539561b3c33dfc76b5 (patch)
tree1dad845670837f57ecaa1e07406444100e896761
parentee1c2b79ed775aeaa67792478bd8b03415f2e582 (diff)
downloadsamba-04bc987b29bb4d104a9656539561b3c33dfc76b5.tar.gz
samba-04bc987b29bb4d104a9656539561b3c33dfc76b5.tar.bz2
samba-04bc987b29bb4d104a9656539561b3c33dfc76b5.zip
r15996: Implement a missing monitor message.
rafal (This used to be commit 37ec35672e23c8a3e3f1f44d2fce69a0729519fb)
-rw-r--r--source4/libnet/userinfo.c11
1 files changed, 10 insertions, 1 deletions
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: