dsdb: Prune deleted objects of links and extra attributes of replicated deletes
authorAndrew Bartlett <abartlet@samba.org>
Fri, 31 May 2013 10:01:17 +0000 (20:01 +1000)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Jul 2013 06:36:41 +0000 (08:36 +0200)
commitd3aad891c5759f66bd891cb47866d908a0562a8a
treea76cb07768569f52bb0a5c8d544d34e955ae2f16
parent8f8e843267636b5fea076014980031afc2c0a7b4
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>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c