From 361673501039e3252db39696af116b2e03ff6427 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 28 Apr 2012 21:51:12 -0700 Subject: dsdb: more RELAX to DBCHECK control shift so that only dbcheck can do uncontrolled changes --- source4/dsdb/samdb/ldb_modules/objectclass_attrs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c index 3b8d2ecd39..1fd850ab90 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c @@ -219,7 +219,7 @@ static int attr_handler(struct oc_context *ac) werr = attr->syntax->validate_ldb(&syntax_ctx, attr, &msg->elements[i]); if (!W_ERROR_IS_OK(werr) && - !ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID)) { + !ldb_request_get_control(ac->req, DSDB_CONTROL_DBCHECK)) { ldb_asprintf_errstring(ldb, "objectclass_attrs: attribute '%s' on entry '%s' contains at least one invalid value!", msg->elements[i].name, ldb_dn_get_linearized(msg->dn)); @@ -384,7 +384,7 @@ static int attr_handler2(struct oc_context *ac) attr = dsdb_attribute_by_lDAPDisplayName(ac->schema, msg->elements[i].name); if (attr == NULL) { - if (ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID)) { + if (ldb_request_get_control(ac->req, DSDB_CONTROL_DBCHECK)) { /* allow this to make it possible for dbcheck to remove bad attributes */ continue; -- cgit