From a94318be4656a668be0295988ed0743105d830c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Fri, 12 Sep 2008 11:28:42 +0200 Subject: [PATCH] netapi: fix NetGroupGetUsers (only enumerates users). Guenther --- source/lib/netapi/group.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/lib/netapi/group.c b/source/lib/netapi/group.c index e2a4913824eb..c3fccb484015 100644 --- 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)) { -- 2.34.1