samba_tool: Enclose iterator with list
authorNoel Power <noel.power@suse.com>
Sat, 25 Aug 2018 10:39:04 +0000 (11:39 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:27 +0000 (05:50 +0200)
commit370dcbb791153ff725bd1e254e610ce43dfcd7f1
tree0384bfc85eb4c78a6f500931a00a9af01da722b2
parente5cac2b843d18bc0d67562460366e0abf9484b3c
samba_tool: Enclose iterator with list

Really strange bug caused by map being updated while being iterated.
This caused keys to be skipped and inconsistent and incorrect
results from ldapcmp.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/ldapcmp.py