Author: mimir Date: 2005-07-22 17:45:42 +0000 (Fri, 22 Jul 2005) New Revision: 8717
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8717 Log: Add monitor message emiting in userdel and usermod calls. 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-22 17:45:39 UTC (rev 8716) +++ branches/SAMBA_4_0/source/libnet/userman.c 2005-07-22 17:45:42 UTC (rev 8717) @@ -296,6 +296,7 @@ { struct composite_context *c = req->async.private; struct userdel_state *s = talloc_get_type(c->private, struct userdel_state); + struct monitor_msg msg; switch (s->stage) { case USERDEL_LOOKUP: @@ -313,6 +314,10 @@ c->state = SMBCLI_REQUEST_ERROR; } + if (c->monitor_fn) { + c->monitor_fn(&msg); + } + if (c->state >= SMBCLI_REQUEST_DONE && c->async.fn) { c->async.fn(c); @@ -502,6 +507,7 @@ { struct composite_context *c = req->async.private; struct usermod_state *s = talloc_get_type(c->private, struct usermod_state); + struct monitor_msg msg; switch (s->stage) { case USERMOD_LOOKUP: @@ -519,6 +525,10 @@ c->state = SMBCLI_REQUEST_ERROR; } + if (c->monitor_fn) { + c->monitor_fn(&msg); + } + if (c->state >= SMBCLI_REQUEST_DONE && c->async.fn) { c->async.fn(c);