summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-10-06 14:21:02 +1100
committerAndrew Tridgell <tridge@samba.org>2011-10-06 14:34:22 +1100
commitd7f617e2e180eab6decb18e697f1e1294194a2cb (patch)
tree664a1543c6f86cadfff013b1d4c977278805f0e0 /source4/dsdb/samdb/ldb_modules/repl_meta_data.c
parentc2d70af1a7b0a67283837a9f823158fd7f8db574 (diff)
downloadsamba-d7f617e2e180eab6decb18e697f1e1294194a2cb.tar.gz
samba-d7f617e2e180eab6decb18e697f1e1294194a2cb.tar.bz2
samba-d7f617e2e180eab6decb18e697f1e1294194a2cb.zip
s4-dsdb: allow deletion of backlinks if DSDB_CONTROL_DBCHECK given
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index fff542abca..2be0760d14 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -2179,6 +2179,9 @@ static int replmd_modify_handle_linked_attribs(struct ldb_module *module,
continue;
}
if ((schema_attr->linkID & 1) == 1) {
+ if (parent && ldb_request_get_control(parent, DSDB_CONTROL_DBCHECK)) {
+ continue;
+ }
/* Odd is for the target. Illegal to modify */
ldb_asprintf_errstring(ldb,
"attribute %s must not be modified directly, it is a linked attribute", el->name);