[PATCH] s4:dsdb - don't check for possible inferiors when schema checking is relaxed
Endi S. Dewata
edewata at redhat.com
Wed Oct 14 13:50:20 MDT 2009
---
source4/dsdb/samdb/ldb_modules/objectclass.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index b6f1a1a..f6a1106 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -576,12 +576,7 @@ static int objectclass_do_add(struct oc_context *ac)
continue;
}
if (ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID)) {
- for (j=0; sclass->systemPossibleInferiors && sclass->systemPossibleInferiors[j]; j++) {
- if (ldb_attr_cmp(current->objectclass->lDAPDisplayName, sclass->systemPossibleInferiors[j]) == 0) {
- allowed_class = true;
- break;
- }
- }
+ allowed_class = true;
} else {
for (j=0; sclass->systemPossibleInferiors && sclass->systemPossibleInferiors[j]; j++) {
if (ldb_attr_cmp(current->objectclass->lDAPDisplayName, sclass->systemPossibleInferiors[j]) == 0) {
--
1.6.0.6
------=_Part_8793_988388400.1255556019351--
More information about the samba-technical
mailing list