replmd: Split apart source/target checks for links
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 24 Oct 2018 00:25:50 +0000 (13:25 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Nov 2018 19:38:14 +0000 (20:38 +0100)
commit0ba028681dc337acf9c8c7f71fa33a8a09b87c58
treeb2a1cbf0f482b9579937669e0e8f05affb587385
parent628b9f71c7d5cf2b76cd9f6a87bc30ac8fa14167
replmd: Split apart source/target checks for links

We've grouped the linked attributes by source-object. Next, we want to
avoid duplicated processing for the source object, i.e. we only need to
check the source object exists once, not once per link.

Before we can do this, we need to tease apart
replmd_extract_la_entry_details(), which is doing both source and target
object processing. Split out extracting the target DSDB-DN so that it's
done separately.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c