diff options
author | Günther Deschner <gd@samba.org> | 2008-09-12 11:28:42 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-15 13:00:42 +0200 |
commit | 27b571d86d2040a9b781e9d30ba88bbe798ac939 (patch) | |
tree | 68a756c475c464abafc49c123ec23a7e514ba2ff /source/lib | |
parent | 3012fdb67bcb26faa5f5c1093937cf4a7da1ca0d (diff) | |
download | samba-27b571d86d2040a9b781e9d30ba88bbe798ac939.tar.gz |
netapi: fix NetGroupGetUsers (only enumerates users).
Guenther
(cherry picked from commit a94318be4656a668be0295988ed0743105d830c9)
(cherry picked from commit 8adbc3c3a41a440f334aed86697fda50cfef3ffa)
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/netapi/group.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/lib/netapi/group.c b/source/lib/netapi/group.c index e2a4913824e..c3fccb48401 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)) { |