dsdb: Prune deleted objects of links and extra attributes of replicated deletes
commit20d8a331fe842a736c104bf87df8ce60fba8eee8
authorAndrew Bartlett <abartlet@samba.org>
Fri, 31 May 2013 10:01:17 +0000 (31 20:01 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Aug 2013 18:25:08 +0000 (5 20:25 +0200)
tree9035442a0dbd1188ab3fd307ddbf4d675dc3f173
parenta0a3b58640528e583e68d324503ebc2bf0e05f69
dsdb: Prune deleted objects of links and extra attributes of replicated deletes

When an object is deleted, the links to be removed are not propogated,
you have to watch out for them manually!

We do this by calling back into the originating update delete code (ie
what is called if you ldb_delete() locally) so that any extra
attribute found locally and not on the remote server becomes removed
remotely too.

We currently do the same with links, but that isn't strictly correct,
but for now our getNCChanges server code filters these out, so only
the usn is bumped.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit d3aad891c5759f66bd891cb47866d908a0562a8a)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c