repl_meta_data: Remove the correct forward link for dn+binary attributes
authorAndrew Bartlett <abartlet@samba.org>
Mon, 12 Oct 2015 02:51:37 +0000 (15:51 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Feb 2017 05:14:35 +0000 (06:14 +0100)
commit4f558c9ad6f9b8a947e33207473579655708eed0
tree4b8618d3e40c74bdc08f79808c7c670df779c056
parent056b6b8e5c5203d642cc2c9cbe2e9c36dff6bc56
repl_meta_data: Remove the correct forward link for dn+binary attributes

The previous code assumed that only plain DNs could be linked attributes.

We need to look over the list of attribute values and find the value
that causes this particular backlink to exist, so we can remove it.

We do not know (until we search) of the binary portion, so we must
search over all the attribute values at this layer, using the
parsed_dn_find() routine used elsewhere in this code.

Found attempting to demote an RODC in a clone of a Windows 2012R2
domain, due to the msDS-RevealedUsers attribute.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11139
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Feb 14 06:14:35 CET 2017 on sn-devel-144
selftest/knownfail
source4/dsdb/samdb/ldb_modules/repl_meta_data.c