r4786: forgot to commit the exclusion for schema checking against our control entries
authorSimo Sorce <idra@samba.org>
Sun, 16 Jan 2005 22:41:43 +0000 (22:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:55 +0000 (13:08 -0500)
(This used to be commit e895fcf4a33aeaf228d8b4b367c4e768506275bb)

source4/lib/ldb/modules/schema.c

index 97cc26a0ddecf2236783d9c6550be1c13dfa8eaf..a56e71ef7a45301f8ac45b47b14e14c0bec838f0 100644 (file)
@@ -384,6 +384,10 @@ static int schema_add_record(struct ldb_module *module, const struct ldb_message
                Free all structures and commit the change
        */
 
+       if (msg->dn[0] == '@') { /* do not check on our control entries */
+               return ldb_next_add_record(module, msg);
+       }
+
        entry_structs = talloc(module, struct schema_structures);
        if (!entry_structs) {
                return -1;
@@ -471,6 +475,10 @@ static int schema_modify_record(struct ldb_module *module, const struct ldb_mess
                Free all structures and commit the change.
        */
 
+       if (msg->dn[0] == '@') { /* do not check on our control entries */
+               return ldb_next_modify_record(module, msg);
+       }
+
        /* allocate object structs */
        entry_structs = talloc(module, struct schema_structures);
        if (!entry_structs) {