diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-21 16:12:54 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-30 17:17:21 +0100 |
commit | 1be4dbc0ca732bd2c35b6108331120a3f1a54ada (patch) | |
tree | fa0e51f40f1d0294fe7fbdef8e27f08a3cb5f51d /source4/dsdb/samdb/ldb_modules | |
parent | 7f42a8b7b667c6a704ecd7bce1630971eb3f1e8c (diff) | |
download | samba-1be4dbc0ca732bd2c35b6108331120a3f1a54ada.tar.gz samba-1be4dbc0ca732bd2c35b6108331120a3f1a54ada.tar.bz2 samba-1be4dbc0ca732bd2c35b6108331120a3f1a54ada.zip |
s4:dsdb/schema_data: allow DSDB_CONTROL_SEC_DESC_PROPAGATION_OID on modify
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_data.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_data.c b/source4/dsdb/samdb/ldb_modules/schema_data.c index 223d698302..bc9488b4e9 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_data.c +++ b/source4/dsdb/samdb/ldb_modules/schema_data.c @@ -256,6 +256,7 @@ static int schema_data_modify(struct ldb_module *module, struct ldb_request *req int cmp; bool rodc = false; int ret; + struct ldb_control *sd_propagation_control; ldb = ldb_module_get_ctx(module); @@ -274,6 +275,21 @@ static int schema_data_modify(struct ldb_module *module, struct ldb_request *req 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); + } + schema = dsdb_get_schema(ldb, req); if (!schema) { return ldb_next_request(module, req); |