]> git.sur5r.net Git - openldap/commitdiff
extensibleObject allows all
authorPierangelo Masarati <ando@openldap.org>
Sat, 17 Feb 2007 17:31:45 +0000 (17:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 17 Feb 2007 17:31:45 +0000 (17:31 +0000)
servers/slapd/schema_check.c

index 19bed5b3bbcf03133ed0b5bc94de560842d0f4a2..e3b76090e7568c8aa72c1a080608bb1d032d857c 100644 (file)
@@ -572,6 +572,10 @@ int oc_check_allowed(
        for ( i = 0; socs[i]; i++ ) {
                /* if we know about the oc */
                ObjectClass     *oc = socs[i];
+               /* extensibleObject allows all */
+               if ( oc == slap_schema.si_oc_extensibleObject ) {
+                       return LDAP_SUCCESS;
+               }
                if ( oc != NULL && oc->soc_kind != LDAP_SCHEMA_ABSTRACT &&
                        ( sc == NULL || oc->soc_kind == LDAP_SCHEMA_AUXILIARY ))
                {