]> git.sur5r.net Git - openldap/commitdiff
ITS#6963 config entries' objectclass is read-only
authorHoward Chu <hyc@openldap.org>
Sat, 4 Jun 2011 20:40:57 +0000 (13:40 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 8 Jun 2011 21:26:27 +0000 (14:26 -0700)
servers/slapd/bconfig.c

index 623940b606b6e3f1c503086201a1d6a21ba85ecb..cec3d679d8fff1bc2678b5bbf1d35e203a8166cd 100644 (file)
@@ -5369,6 +5369,11 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
        oc_at = attr_find( e->e_attrs, slap_schema.si_ad_objectClass );
        if ( !oc_at ) return LDAP_OBJECT_CLASS_VIOLATION;
 
+       for (ml = op->orm_modlist; ml; ml=ml->sml_next) {
+               if (ml->sml_desc == slap_schema.si_ad_objectClass)
+                       return rc;
+       }
+
        colst = count_ocs( oc_at, &nocs );
 
        /* make sure add/del flags are clear; should always be true */