summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-01-16 22:41:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:55 -0500
commit9f3d73430828bdc94ae59cb2db1c3ba79c710ab4 (patch)
treeaaeead24c439d1049815481ad9f091299d1678bd /source4/lib
parent8a153e5ca2df565b3b38786dcec72635fd196d5b (diff)
downloadsamba-9f3d73430828bdc94ae59cb2db1c3ba79c710ab4.tar.gz
samba-9f3d73430828bdc94ae59cb2db1c3ba79c710ab4.tar.bz2
samba-9f3d73430828bdc94ae59cb2db1c3ba79c710ab4.zip
r4786: forgot to commit the exclusion for schema checking against our control entries
(This used to be commit e895fcf4a33aeaf228d8b4b367c4e768506275bb)
Diffstat (limited to 'source4/lib')
-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) {