dsdb: change control from relax to dbcheck
authorMatthieu Patou <mat@matws.net>
Sat, 28 Apr 2012 22:55:06 +0000 (15:55 -0700)
committerMatthieu Patou <mat@samba.org>
Sun, 29 Apr 2012 05:35:10 +0000 (07:35 +0200)
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

index d45c46fdb9353b7ddbae669f75505b50e396dda8..3b8d2ecd395ac92715cfd5647739e7ec7539384b 100644 (file)
@@ -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 */