summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-23 03:32:15 +0200
committerGünther Deschner <gd@samba.org>2008-10-23 11:46:18 +0200
commitfafa60844151c60e02f5b50e98e2e6e973e56d1d (patch)
tree1a346f90e0a0f2030b0badaea22988882dccde5c /source3/lib/netapi
parent6e058e5977c6ca4369d09338d519fdd5f1611ca6 (diff)
downloadsamba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.tar.gz
samba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.tar.bz2
samba-fafa60844151c60e02f5b50e98e2e6e973e56d1d.zip
netapi: fix NetUserGetGroups_r returning partial results.
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/user.c5
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,