1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00

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>
This commit is contained in:
Douglas Bagnall
2018-11-21 15:33:57 +13:00
committed by Andrew Bartlett
parent 7ebbd3731d
commit c4bd785ac1

View File

@ -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