dsdb: Make it harder to corrupt the database by requiring DBCHECK or RELAX for final...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 3 Apr 2014 01:50:05 +0000 (14:50 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:15 +0000 (12:46 +0200)
commitddfbfd752b202264f88b398e410592d190f41d00
tree4f1a7285f0b78aa815d92282b41180b39ab6cdf7
parent5572384d450d93176345000ad69b62cc8abcbd3b
dsdb: Make it harder to corrupt the database by requiring DBCHECK or RELAX for final object deletion

This kind of deletion can cause us to then replicate back a partial
object.  We allow dbcheck to directly remove totally corrupt objects
(missing an objectclass) by specifying both DBCHECK and RELAX, and the
tombstone sweep after 180 days is done with the RELAX control.

Andrew Bartlett

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