git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e058e5
)
netapi: fix NetUserGetGroups_r returning partial results.
author
Günther Deschner
<gd@samba.org>
Thu, 23 Oct 2008 01:32:15 +0000
(
03:32
+0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 23 Oct 2008 09:46:18 +0000
(11:46 +0200)
Guenther
source3/lib/netapi/user.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/user.c
b/source3/lib/netapi/user.c
index fcb87b77befc30490bb0adf70a0474ffc03d5314..98c96ac450cd7b6f1b53759a7be41ba7eba96174 100644
(file)
--- 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,