summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-06 07:29:34 +0000
committerJeremy Allison <jra@samba.org>2003-01-06 07:29:34 +0000
commitcd02d53f0d8710c3c16726e501682091cd9c982c (patch)
treebd87bebd3421721c519a4b038cfa2876d0d8db77
parentcfe7718e9a4a51cf13faf77016231b598b3c248c (diff)
downloadsamba-cd02d53f0d8710c3c16726e501682091cd9c982c.tar.gz
samba-cd02d53f0d8710c3c16726e501682091cd9c982c.tar.bz2
samba-cd02d53f0d8710c3c16726e501682091cd9c982c.zip
Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
groups. Jeremy. (This used to be commit cde517cedf3521b815faf2bdaf7940a611a28650)
-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? */