From 8877716d980e255743844e43f0763717498698a9 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 26 Mar 2015 12:17:06 +1300 Subject: [PATCH] KCC: sort vertices by ndr_packed_guid instead of string guid ndr_packed guids seems to be what windows uses. Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- source4/scripting/bin/samba_kcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index 9d293648551..dace956831b 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -2825,7 +2825,7 @@ def process_edge(graph, examine, internal_edges): vertices = [] for v in examine.vertices: # Append a 4-tuple of color, repl cost, guid and vertex - vertices.append((v.color, v.repl_info.cost, v.guid, v)) + vertices.append((v.color, v.repl_info.cost, v.ndrpacked_guid, v)) # Sort by color, lower DEBUG("vertices is %s" % vertices) vertices.sort()