From 441b20872bd4eebc47bf68223694a1f71f833bb5 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 28 Apr 2012 15:55:06 -0700 Subject: dsdb: change control from relax to dbcheck Comment indicate that this is needed by dbcheck only and it permits other projects to push broken schema and remain undetected --- source4/dsdb/samdb/ldb_modules/objectclass_attrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c index d45c46fdb9..3b8d2ecd39 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c @@ -192,7 +192,7 @@ static int attr_handler(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) && ac->req->operation != LDB_ADD) { /* we allow this for dbcheck to fix broken attributes */ -- cgit