summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/userman.c10
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);