Author: mimir Date: 2005-07-26 23:03:37 +0000 (Tue, 26 Jul 2005) New Revision: 8789
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8789 Log: Send new monitor messages from userdel routine. rafal Modified: branches/SAMBA_4_0/source/libnet/userman.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/userman.c =================================================================== --- branches/SAMBA_4_0/source/libnet/userman.c 2005-07-26 23:02:35 UTC (rev 8788) +++ branches/SAMBA_4_0/source/libnet/userman.c 2005-07-26 23:03:37 UTC (rev 8789) @@ -29,6 +29,7 @@ #include "librpc/gen_ndr/ndr_samr.h" #include "libnet/composite.h" #include "libnet/userman.h" +#include "libnet/userinfo.h" /* * Composite user add function @@ -303,16 +304,38 @@ struct composite_context *c = req->async.private; struct userdel_state *s = talloc_get_type(c->private, struct userdel_state); struct monitor_msg msg; + struct msg_rpc_lookup_name *msg_lookup; + struct msg_rpc_open_user *msg_open; switch (s->stage) { case USERDEL_LOOKUP: c->status = userdel_lookup(c, s); + + msg.type = rpc_lookup_name; + msg_lookup = talloc(s, struct msg_rpc_lookup_name); + msg_lookup->rid = s->lookupname.out.rids.ids; + msg_lookup->count = s->lookupname.out.rids.count; + msg.data = (void*)msg_lookup; + msg.data_size = sizeof(*msg_lookup); break; + case USERDEL_OPEN: c->status = userdel_open(c, s); + + msg.type = rpc_open_user; + msg_open = talloc(s, struct msg_rpc_open_user); + msg_open->rid = s->openuser.in.rid; + msg_open->access_mask = s->openuser.in.rid; + msg.data = (void*)msg_open; + msg.data_size = sizeof(*msg_open); break; + case USERDEL_DELETE: c->status = userdel_delete(c, s); + + msg.type = rpc_delete_user; + msg.data = NULL; + msg.data_size = 0; break; }