From: Matthieu Patou Date: Sat, 28 Apr 2012 22:55:06 +0000 (-0700) Subject: dsdb: change control from relax to dbcheck X-Git-Tag: samba-4.0.0alpha20~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=441b20872bd4eebc47bf68223694a1f71f833bb5;p=thirdparty%2Fsamba.git 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 --- diff --git a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c index d45c46fdb93..3b8d2ecd395 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 */