summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-04-28 15:55:06 -0700
committerMatthieu Patou <mat@samba.org>2012-04-29 07:35:10 +0200
commit441b20872bd4eebc47bf68223694a1f71f833bb5 (patch)
treecc894990ab93e70ac301c352c0b3bbb040aba1f4
parente2a16909a12de08d6541ef7d4936d1ab5f46284d (diff)
downloadsamba-441b20872bd4eebc47bf68223694a1f71f833bb5.tar.gz
samba-441b20872bd4eebc47bf68223694a1f71f833bb5.tar.bz2
samba-441b20872bd4eebc47bf68223694a1f71f833bb5.zip
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
-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 */