netcmd/ldapcmp: avoid modifying data while looping on dict
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 29 Oct 2018 04:28:56 +0000 (17:28 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Nov 2018 06:46:19 +0000 (07:46 +0100)
commitbbd082e7929010545deb5ce59e370ebe934aa23e
treef5f6fca6e2ce10b7a89bd31dc47d5ac8574e2103
parent047138708965d61c122dce64d57a42419e21e501
netcmd/ldapcmp: avoid modifying data while looping on dict

Just define another dict for return value, seems no need to modify
original dict.

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