idmap_rfc2307: Don't stop after 30 entries
authorVolker Lendecke <vl@samba.org>
Fri, 31 Mar 2017 15:20:07 +0000 (15:20 +0000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 May 2017 06:54:20 +0000 (08:54 +0200)
commit0160f27a8b3a094686c8d56742eab97fea3aedb7
treeecc5759c5035b6a0b31daa712dc3c2745f84a0ed
parentc66a8b0e5e878135f889168808c16ef179df99f5
idmap_rfc2307: Don't stop after 30 entries

We start over again and again, so we need to search in the whole list.
This is a quick hack generating a bad O(n^2). The real fix is to
call idmap_rfc2307_find_map with "maps" starting at the right offset,
but that's an optimization for later when it's restructured

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>
(cherry picked from commit c0f12170e8b9fb3ab75f53bba637c72f6465192e)
source3/winbindd/idmap_util.c