From f792f87094c4eda453d54b6b4f1d70d88412f451 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 12 Sep 2008 11:28:42 +0200 Subject: netapi: fix NetGroupGetUsers (only enumerates users). Guenther (This used to be commit a94318be4656a668be0295988ed0743105d830c9) --- source3/lib/netapi/group.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/lib/netapi') 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)) { -- cgit