summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-11 01:04:13 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-11 01:04:13 +0000
commitd033e533001ba255293e5fac639390d507ce3f3a (patch)
tree5374951084b4e701d8ba0b41de3ab481c70b01ec /source3/nsswitch/winbindd_cache.c
parentd032059df9559abbf9d828d7fb13626ddd2a62fc (diff)
downloadsamba-d033e533001ba255293e5fac639390d507ce3f3a.tar.gz
samba-d033e533001ba255293e5fac639390d507ce3f3a.tar.bz2
samba-d033e533001ba255293e5fac639390d507ce3f3a.zip
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)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c8
1 files changed, 4 insertions, 4 deletions
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: