summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass_attrs.c2
1 files changed, 1 insertions, 1 deletions
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 */