summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/modules/schema.c8
1 files changed, 8 insertions, 0 deletions
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) {