From: Douglas Bagnall Date: Wed, 21 Nov 2018 02:33:57 +0000 (+1300) Subject: samba-tool ldapcmp: print DNs on predictable order X-Git-Tag: tdb-1.3.17~689 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bd785ac12fe80e11e985c8c50e459be4ec9898;p=thirdparty%2Fsamba.git 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 --- 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