1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

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
This commit is contained in:
Matthieu Patou 2012-04-28 15:55:06 -07:00 committed by Matthieu Patou
parent e2a16909a1
commit 441b20872b

View 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 */