summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-06 07:29:38 +0000
committerJeremy Allison <jra@samba.org>2003-01-06 07:29:38 +0000
commit64452be9ba8ff9a4762239925bdbeec320aa93f9 (patch)
tree262662e1c8b202769df4cffec66c79c984cfb518 /source3/nsswitch
parent5df19f71d1a2a65c5915020062c2dc0aecb2581e (diff)
downloadsamba-64452be9ba8ff9a4762239925bdbeec320aa93f9.tar.gz
samba-64452be9ba8ff9a4762239925bdbeec320aa93f9.tar.bz2
samba-64452be9ba8ff9a4762239925bdbeec320aa93f9.zip
Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
groups. Jeremy. (This used to be commit c3a779fc0d9be38f6aa2569c36916a76e1a04359)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_rpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index ddd2fc4946..edeacdec6d 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/nsswitch/winbindd_rpc.c
@@ -131,6 +131,7 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain,
CLI_POLICY_HND *hnd;
POLICY_HND dom_pol;
NTSTATUS status;
+ uint32 start = 0;
*num_entries = 0;
*info = NULL;
@@ -149,11 +150,12 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain,
do {
struct acct_info *info2 = NULL;
- uint32 count = 0, start = *num_entries;
+ uint32 count = 0;
TALLOC_CTX *mem_ctx2;
mem_ctx2 = talloc_init("enum_dom_groups[rpc]");
+ /* start is updated by this call. */
status = cli_samr_enum_dom_groups(hnd->cli, mem_ctx2, &dom_pol,
&start,
0xFFFF, /* buffer size? */