dsdb: Further assert that we always have an objectClass and an rDN
commit9c9df40220234cba973e84b4985d90da1334a1d1
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Feb 2014 04:49:12 +0000 (28 17:49 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 17 Mar 2014 05:44:17 +0000 (17 06:44 +0100)
treebd0d05878f7c0032f71e748ba0d2d63774d502b9
parentd78369789afa178b4fc64dec3e32f72cb2eb0483
dsdb: Further assert that we always have an objectClass and an rDN

We must have these two elements in a replPropertyMetaData for it to be
valid.

We may have to relax this for new partition creation, but for now we
want to find and isolate the database corruption.

The printing of the LDIF is moved above the checks to make it easier
to diagnoise the failures when further reproduced.

Based initially on a patch originally by Arvid Requate <requate@univention.de>

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Change-Id: I5f583d89e6d4c5e8e2d9667f336a0e8fd8347b25
Reviewed-on: https://gerrit.samba.org/164
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Mar 17 06:44:17 CET 2014 on sn-devel-104
source4/dsdb/samdb/ldb_modules/repl_meta_data.c