diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-26 10:21:44 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-26 11:21:01 +0100 |
commit | 393b83979d11dddcf6d38ca24b3aea7bb645e0d0 (patch) | |
tree | 77e0ada2dbb834efc401bcb8d15f074373fc47ff | |
parent | 5b3a32be97a37c119e837bdee8f049684565458c (diff) | |
download | samba-393b83979d11dddcf6d38ca24b3aea7bb645e0d0.tar.gz samba-393b83979d11dddcf6d38ca24b3aea7bb645e0d0.tar.bz2 samba-393b83979d11dddcf6d38ca24b3aea7bb645e0d0.zip |
s4:operational LDB module - Don't do the write checks here
Let this perform the schema in the "objectclass" module.
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/operational.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index 46d4745068..e48f91bac0 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -434,24 +434,8 @@ static int operational_init(struct ldb_module *ctx) return LDB_SUCCESS; } -static int operational_modify(struct ldb_module *module, struct ldb_request *req) -{ - unsigned int i; - - for (i = 0; i < ARRAY_SIZE(search_sub); i++) { - if (ldb_msg_find_element(req->op.mod.message, search_sub[i].attr) != NULL) { - /* operational attributes cannot be changed! */ - return LDB_ERR_CONSTRAINT_VIOLATION; - } - } - - /* No operational attribute will be changed -> go on */ - return ldb_next_request(module, req); -} - const struct ldb_module_ops ldb_operational_module_ops = { .name = "operational", .search = operational_search, - .modify = operational_modify, .init_context = operational_init }; |