diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-23 11:18:05 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-30 17:17:21 +0100 |
commit | 7f42a8b7b667c6a704ecd7bce1630971eb3f1e8c (patch) | |
tree | 7ac3763d97c46704c6bfb35b47748452302f8a34 | |
parent | cb9c7ee79b2f4e8c875bd15c1fddee90648eec19 (diff) | |
download | samba-7f42a8b7b667c6a704ecd7bce1630971eb3f1e8c.tar.gz samba-7f42a8b7b667c6a704ecd7bce1630971eb3f1e8c.tar.bz2 samba-7f42a8b7b667c6a704ecd7bce1630971eb3f1e8c.zip |
s4:dsdb/repl_meta_data: allow DSDB_CONTROL_SEC_DESC_PROPAGATION_OID on modify
The propagation of nTSecurityDescriptor doesn't change the
replProperyMetaData.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 16 |
1 files changed, 16 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 6b5e1219f8..7e1993cada 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -2306,12 +2306,28 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req) bool is_urgent = false, rodc = false; unsigned int functional_level; const DATA_BLOB *guid_blob; + struct ldb_control *sd_propagation_control; /* do not manipulate our control entries */ if (ldb_dn_is_special(req->op.mod.message->dn)) { return ldb_next_request(module, req); } + sd_propagation_control = ldb_request_get_control(req, + DSDB_CONTROL_SEC_DESC_PROPAGATION_OID); + if (sd_propagation_control != NULL) { + if (req->op.mod.message->num_elements != 1) { + return ldb_module_operr(module); + } + ret = strcmp(req->op.mod.message->elements[0].name, + "nTSecurityDescriptor"); + if (ret != 0) { + return ldb_module_operr(module); + } + + return ldb_next_request(module, req); + } + ldb = ldb_module_get_ctx(module); ldb_debug(ldb, LDB_DEBUG_TRACE, "replmd_modify\n"); |