diff options
author | Rafal Szczesniak <mimir@samba.org> | 2006-10-02 05:53:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:29 -0500 |
commit | 89e4387a08fd90176161d0139ed3b4c3c2c1289c (patch) | |
tree | 9973d30909c924d1659386de08d5393f3beb83f2 /source4/libnet/userinfo.c | |
parent | c4f106c4148965a6cb302d2d1dff730058fe5fc4 (diff) | |
download | samba-89e4387a08fd90176161d0139ed3b4c3c2c1289c.tar.gz |
r19024: remove read-only and policy dependent fields and flags
from user modify routines.
rafal
(This used to be commit 7ca0d3dbcb9193c0f023e7c43764c7557925bb0e)
Diffstat (limited to 'source4/libnet/userinfo.c')
-rw-r--r-- | source4/libnet/userinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c index cf00ae16bac..57a30e59dc8 100644 --- a/source4/libnet/userinfo.c +++ b/source4/libnet/userinfo.c @@ -104,7 +104,7 @@ static NTSTATUS userinfo_openuser(struct composite_context *c, /* receive samr_OpenUser reply */ c->status = dcerpc_ndr_request_recv(s->req); NT_STATUS_NOT_OK_RETURN(c->status); - + /* prepare parameters for QueryUserInfo call */ s->queryuserinfo.in.user_handle = &s->user_handle; s->queryuserinfo.in.level = s->level; @@ -134,6 +134,9 @@ static NTSTATUS userinfo_getuser(struct composite_context *c, c->status = dcerpc_ndr_request_recv(s->req); NT_STATUS_NOT_OK_RETURN(c->status); + /* check if queryuser itself went ok */ + NT_STATUS_NOT_OK_RETURN(s->queryuserinfo.out.result); + s->info = talloc_steal(s, s->queryuserinfo.out.info); /* prepare arguments for Close call */ |