netcmd/ldapcmp: use set instead of list to find missing DNs
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 29 Oct 2018 02:00:15 +0000 (15:00 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Nov 2018 06:46:19 +0000 (07:46 +0100)
commitf821f84f2e9a8489dcf8842ce716546f6f8c5ff0
treef04e89074d86d8427c1f43e99534411081495f51
parent86882bd12e506e3a7ceac4f3e9e282df55398a7f
netcmd/ldapcmp: use set instead of list to find missing DNs

This simplify the logic and improve performance a lot.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/ldapcmp.py