git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45199a0
)
netapi: fix NetGroupGetUsers (only enumerates users).
author
Günther Deschner
<gd@samba.org>
Fri, 12 Sep 2008 09:28:42 +0000
(11:28 +0200)
committer
Günther Deschner
<gd@samba.org>
Mon, 15 Sep 2008 10:47:44 +0000
(12:47 +0200)
Guenther
(cherry picked from commit
a94318be4656a668be0295988ed0743105d830c9
)
source/lib/netapi/group.c
patch
|
blob
|
history
diff --git
a/source/lib/netapi/group.c
b/source/lib/netapi/group.c
index e2a4913824eb1d0c186c21e49738b097d25b2ce1..c3fccb484015cfdba9ff6510a006d7e6b510c80b 100644
(file)
--- a/
source/lib/netapi/group.c
+++ b/
source/lib/netapi/group.c
@@
-1391,10
+1391,15
@@
WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
}
for (i=0; i < names.count; i++) {
+
+ if (member_types.ids[i] != SID_NAME_USER) {
+ continue;
+ }
+
status = add_GROUP_USERS_INFO_X_buffer(ctx,
r->in.level,
names.names[i].string,
-
member_types.ids[i]
,
+
7
,
r->out.buffer,
&entries_read);
if (!NT_STATUS_IS_OK(status)) {