From 9f3d73430828bdc94ae59cb2db1c3ba79c710ab4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 16 Jan 2005 22:41:43 +0000 Subject: r4786: forgot to commit the exclusion for schema checking against our control entries (This used to be commit e895fcf4a33aeaf228d8b4b367c4e768506275bb) --- source4/lib/ldb/modules/schema.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source4/lib/ldb/modules/schema.c b/source4/lib/ldb/modules/schema.c index 97cc26a0dd..a56e71ef7a 100644 --- a/source4/lib/ldb/modules/schema.c +++ b/source4/lib/ldb/modules/schema.c @@ -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) { -- cgit