summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/userman.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c
index d87ec1eaf7..c5bc8654c3 100644
--- a/source4/libnet/userman.c
+++ b/source4/libnet/userman.c
@@ -59,9 +59,12 @@ static NTSTATUS useradd_create(struct composite_context *c,
{
c->status = dcerpc_ndr_request_recv(s->req);
NT_STATUS_NOT_OK_RETURN(c->status);
+
+ /* return the actual function call status */
+ c->status = s->createuser.out.result;
c->state = COMPOSITE_STATE_DONE;
- return NT_STATUS_OK;
+ return c->status;
}