From 0e2de3d27ebdb620c3372ecf90d889c70c030aa1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 28 Feb 2004 08:18:09 +0000 Subject: Fix my fix to net rpc group list. We can certainly have more than a single set of groups. Volker (This used to be commit e77fe4a77a6b0b8d92014edb073b36d01a1a5169) --- source3/utils/net_rpc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index e46dfe7fd4..a3c4e7a135 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -1193,7 +1193,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name, &start_idx, 3, &num_entries, max_entries, max_size, &ctr); - if (!NT_STATUS_IS_OK(result)) + if (!NT_STATUS_IS_OK(result) && + !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) break; for (i = 0; i < num_entries; i++) { @@ -1219,7 +1220,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name, &start_idx, max_entries, &groups, &num_entries); - if (!NT_STATUS_IS_OK(result)) + if (!NT_STATUS_IS_OK(result) && + !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) break; for (i = 0; i < num_entries; i++) { @@ -1273,7 +1275,8 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name, &start_idx, max_entries, &groups, &num_entries); - if (!NT_STATUS_IS_OK(result)) + if (!NT_STATUS_IS_OK(result) && + !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) break; for (i = 0; i < num_entries; i++) { -- cgit