summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-12 11:28:42 +0200
committerGünther Deschner <gd@samba.org>2008-09-12 14:12:33 +0200
commitf792f87094c4eda453d54b6b4f1d70d88412f451 (patch)
tree5bbe3d603180ac29aecf8763954d43bb24a2d990 /source3/lib
parent47dbe6f7aef5cf3b7f2c0da90533fa2da2790cec (diff)
downloadsamba-f792f87094c4eda453d54b6b4f1d70d88412f451.tar.gz
samba-f792f87094c4eda453d54b6b4f1d70d88412f451.tar.bz2
samba-f792f87094c4eda453d54b6b4f1d70d88412f451.zip
netapi: fix NetGroupGetUsers (only enumerates users).
Guenther (This used to be commit a94318be4656a668be0295988ed0743105d830c9)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/group.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c
index e2a4913824..c3fccb4840 100644
--- a/source3/lib/netapi/group.c
+++ b/source3/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)) {