mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r8717: Add monitor message emiting in userdel and usermod calls.
rafal
This commit is contained in:
parent
c6bae3e87e
commit
4b3aa69e70
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user