s4:operational LDB module - Don't do the write checks here
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 26 Nov 2009 09:21:44 +0000 (10:21 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Thu, 26 Nov 2009 10:21:01 +0000 (11:21 +0100)
Let this perform the schema in the "objectclass" module.

source4/dsdb/samdb/ldb_modules/operational.c

index 46d4745068a90606c6dbc22e477f129db44d294d..e48f91bac0b12ba2d89fa2e8d47f6a9e0576a051 100644 (file)
@@ -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
 };