From d033e533001ba255293e5fac639390d507ce3f3a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Dec 2001 01:04:13 +0000 Subject: removed the start_ndx parameter from group enumeration I tried testing this by lowering the buffer size in cli_samr_enum_dom_groups() but that didn't work - I think this needs more looking into (This used to be commit 34328e30315e4b42087d0ee11ed0c3fb715bc250) --- source3/nsswitch/winbindd_cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/nsswitch/winbindd_cache.c') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 304c686b97..32f9f0d69f 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -502,7 +502,7 @@ skip_save: /* list all domain groups */ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, - uint32 *start_ndx, uint32 *num_entries, + uint32 *num_entries, struct acct_info **info) { struct winbind_cache *cache = get_cache(domain); @@ -512,7 +512,7 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain, if (!cache->tdb) goto do_query; - centry = wcache_fetch(cache, domain, "GL/%s/%d", domain->name, *start_ndx); + centry = wcache_fetch(cache, domain, "GL/%s", domain->name); if (!centry) goto do_query; *num_entries = centry_uint32(centry); @@ -538,7 +538,7 @@ do_query: return NT_STATUS_SERVER_DISABLED; } - status = cache->backend->enum_dom_groups(domain, mem_ctx, start_ndx, num_entries, info); + status = cache->backend->enum_dom_groups(domain, mem_ctx, num_entries, info); /* and save it */ refresh_sequence_number(domain, True); @@ -550,7 +550,7 @@ do_query: centry_put_string(centry, (*info)[i].acct_desc); centry_put_uint32(centry, (*info)[i].rid); } - centry_end(centry, "GL/%s/%d", domain->name, *start_ndx); + centry_end(centry, "GL/%s", domain->name); centry_free(centry); skip_save: -- cgit