summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-04-10 20:39:45 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-04-10 21:41:57 +1000
commit77267733edba42f03f89f3777854569bf2333321 (patch)
treee8d5b2f5ffaa0fd12a62fe9ee010be4f2b38e89d /source4/dsdb/schema
parent5ebeab379430104c615fd401abe9a8c7dc3339b8 (diff)
downloadsamba-77267733edba42f03f89f3777854569bf2333321.tar.gz
samba-77267733edba42f03f89f3777854569bf2333321.tar.bz2
samba-77267733edba42f03f89f3777854569bf2333321.zip
s4:dsdb Don't use the permissive modify control on schemaInfo updates
The use of 'replace' is enough to wipe out the old value, whatever it is, we don't need to set 'permissive modify' too. Additionally, this seems to be causing trouble for the OpenLDAP backend Andrew Bartlett
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_info_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_info_attr.c b/source4/dsdb/schema/schema_info_attr.c
index bb89be1172..eee1c79b91 100644
--- a/source4/dsdb/schema/schema_info_attr.c
+++ b/source4/dsdb/schema/schema_info_attr.c
@@ -239,7 +239,7 @@ WERROR dsdb_module_schema_info_blob_write(struct ldb_module *ldb_module,
}
- ldb_err = dsdb_module_modify(ldb_module, msg, dsdb_flags | DSDB_MODIFY_PERMISSIVE);
+ ldb_err = dsdb_module_modify(ldb_module, msg, dsdb_flags);
talloc_free(temp_ctx);
@@ -384,7 +384,7 @@ WERROR dsdb_schema_info_reset(struct ldb_context *ldb, struct dsdb_schema *schem
werr = _dsdb_schema_info_write_prepare(ldb, &blob, temp_ctx, &msg);
W_ERROR_NOT_OK_GOTO(werr, DONE);
- ldb_err = dsdb_modify(ldb, msg, DSDB_MODIFY_PERMISSIVE);
+ ldb_err = dsdb_modify(ldb, msg, 0);
if (ldb_err != 0) {
DEBUG(0,("dsdb_module_schema_info_blob_write: dsdb_replace failed: %s (%s)\n",
ldb_strerror(ldb_err),