From c4bd785ac12fe80e11e985c8c50e459be4ec9898 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 21 Nov 2018 15:33:57 +1300 Subject: [PATCH] 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 Reviewed-by: Andrew Bartlett --- python/samba/netcmd/ldapcmp.py | 4 ++-- 1 file 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 -- 2.34.1