1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

idmap_rfc2307: "ldap_next_entry" needs the previous entry, not the start

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12757

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
Volker Lendecke 2017-03-31 15:23:39 +00:00 committed by Christof Schmitt
parent 54a0e7e3d7
commit 17563f295f

View File

@ -552,7 +552,7 @@ static void idmap_rfc2307_map_xid_results(struct idmap_rfc2307_context *ctx,
if (i == 0) {
entry = ldap_first_entry(ctx->ldap, result);
} else {
entry = ldap_next_entry(ctx->ldap, result);
entry = ldap_next_entry(ctx->ldap, entry);
}
if (!entry) {
DEBUG(2, ("Unable to fetch entry.\n"));