repl_meta_data: linked attributes use DRS sort order
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 Jan 2017 01:09:00 +0000 (14:09 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 9 Feb 2017 02:17:16 +0000 (03:17 +0100)
commit976a213b1821726842a3ca3d0b0db7d575c4c5bd
tree8e2739fc426e490835515743bf69361de3bd3ebd
parentbd6b417179938dc89e16672d2290901463355b16
repl_meta_data: linked attributes use DRS sort order

Links come over the wire as if sorted by memcmp() on the binary blobs,
not as sorted by GUID_compare(). Until a few patches ago, a newly
joined DC would have its linked attributes in the memcmp order. This
restores that behaviour.

This comparison could be made more efficient by storing the GUID in
the original state, but it does not seem to be a bottleneck.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c