diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-07-22 17:45:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:58 -0500 |
commit | e5f60830921d730d94240440ed39ec77fb30774e (patch) | |
tree | 44baadc180ce7dea88f887f088102cdcf9174307 | |
parent | f1418f62eecb3b62de92ce06f1a36b45e0a8dd8d (diff) | |
download | samba-e5f60830921d730d94240440ed39ec77fb30774e.tar.gz samba-e5f60830921d730d94240440ed39ec77fb30774e.tar.bz2 samba-e5f60830921d730d94240440ed39ec77fb30774e.zip |
r8717: Add monitor message emiting in userdel and usermod calls.
rafal
(This used to be commit 4b3aa69e70ed5d6e78f6f45f8f43649ad9ae108d)
-rw-r--r-- | source4/libnet/userman.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 74f5d90ae2..4d021506bb 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -296,6 +296,7 @@ static void userdel_handler(struct rpc_request *req) { 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 @@ static void userdel_handler(struct rpc_request *req) 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 @@ static void usermod_handler(struct rpc_request *req) { 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 @@ static void usermod_handler(struct rpc_request *req) 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); |