diff options
author | Günther Deschner <gd@samba.org> | 2008-10-23 03:32:15 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-23 11:46:18 +0200 |
commit | fafa60844151c60e02f5b50e98e2e6e973e56d1d (patch) | |
tree | 1a346f90e0a0f2030b0badaea22988882dccde5c /source3/lib | |
parent | 6e058e5977c6ca4369d09338d519fdd5f1611ca6 (diff) | |
download | samba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.tar.gz samba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.tar.bz2 samba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.zip |
netapi: fix NetUserGetGroups_r returning partial results.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/netapi/user.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index fcb87b77be..98c96ac450 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -2916,12 +2916,13 @@ WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx, rids, &names, &types); - if (!NT_STATUS_IS_OK(status)) { + if (!NT_STATUS_IS_OK(status) && + !NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED)) { werr = ntstatus_to_werror(status); goto done; } - for (i=0; i < rid_array->count; i++) { + for (i=0; i < names.count; i++) { status = add_GROUP_USERS_INFO_X_buffer(ctx, r->in.level, names.names[i].string, |