diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-06 07:29:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-06 07:29:34 +0000 |
commit | cd02d53f0d8710c3c16726e501682091cd9c982c (patch) | |
tree | bd87bebd3421721c519a4b038cfa2876d0d8db77 | |
parent | cfe7718e9a4a51cf13faf77016231b598b3c248c (diff) | |
download | samba-cd02d53f0d8710c3c16726e501682091cd9c982c.tar.gz samba-cd02d53f0d8710c3c16726e501682091cd9c982c.tar.xz 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.c | 4 |
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? */ |