summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-22 17:12:28 +0200
committerVolker Lendecke <vl@samba.org>2009-08-23 10:19:32 +0200
commita0bf0cb0fb1d2f98311449949aa9e15f6523cb3b (patch)
tree1ce0299c3aabe1e03ec7e82b9006001802012673 /source3
parent963419be1bdc7e4ae97e8739da305691109a13a7 (diff)
downloadsamba-a0bf0cb0fb1d2f98311449949aa9e15f6523cb3b.tar.gz
samba-a0bf0cb0fb1d2f98311449949aa9e15f6523cb3b.tar.bz2
samba-a0bf0cb0fb1d2f98311449949aa9e15f6523cb3b.zip
s3:winbind: Do not drop the first user in sam_query_user_list
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_passdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c
index 4b3095ac83..5a2c31fe2f 100644
--- a/source3/winbindd/winbindd_passdb.c
+++ b/source3/winbindd/winbindd_passdb.c
@@ -460,9 +460,10 @@ static NTSTATUS sam_query_user_list(struct winbindd_domain *domain,
return NT_STATUS_NO_MEMORY;
}
- *num_entries = pdb_search_entries(ps,
- 1, 0xffffffff,
- &entries);
+ *num_entries = pdb_search_entries(ps, 0, 0xffffffff, &entries);
+
+ DEBUG(10, ("sam_query_user_list: found %d users\n",
+ (int)*num_entries));
*info = TALLOC_ZERO_ARRAY(mem_ctx, struct wbint_userinfo, *num_entries);
if (!(*info)) {