From d7f617e2e180eab6decb18e697f1e1294194a2cb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Oct 2011 14:21:02 +1100 Subject: s4-dsdb: allow deletion of backlinks if DSDB_CONTROL_DBCHECK given Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/objectclass_attrs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/ldb_modules/objectclass_attrs.c') diff --git a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c index 9893adae93..b6f91651dc 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c @@ -173,7 +173,8 @@ static int attr_handler(struct oc_context *ac) } if ((attr->linkID & 1) == 1 && - !ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID)) { + !ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID) && + !ldb_request_get_control(ac->req, DSDB_CONTROL_DBCHECK)) { /* Odd is for the target. Illegal to modify */ ldb_asprintf_errstring(ldb, "objectclass_attrs: attribute '%s' on entry '%s' must not be modified directly, it is a linked attribute", -- cgit