summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-11-21 15:33:57 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-11-21 07:46:20 +0100
commitc4bd785ac12fe80e11e985c8c50e459be4ec9898 (patch)
treefe6e7391f6821b5690727a0fc856e32ab424a6a9 /python
parent7ebbd3731d0f510c040e7dc59532a8fb5c0f609a (diff)
downloadsamba-c4bd785ac12fe80e11e985c8c50e459be4ec9898.tar.gz
samba-tool ldapcmp: print DNs on predictable order
Rather than unstable hash order. Ideally we'd do them in proper DN order. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/ldapcmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/netcmd/ldapcmp.py b/python/samba/netcmd/ldapcmp.py
index 2118c1a7800..17c62928a55 100644
--- a/python/samba/netcmd/ldapcmp.py
+++ b/python/samba/netcmd/ldapcmp.py
@@ -743,14 +743,14 @@ class LDAPBundle(object):
if self_only:
res = False
self.log("\n* DNs found only in %s:" % self.con.host)
- for x in self_only:
+ for x in sorted(self_only):
self.log(4 * " " + x)
other_only = other_dns - self_dns # missing in self
if other_only:
res = False
self.log("\n* DNs found only in %s:" % other.con.host)
- for x in other_only:
+ for x in sorted(other_only):
self.log(4 * " " + x)
common_dns = self_dns & other_dns