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:
parent
54a0e7e3d7
commit
17563f295f
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user