return ldb_next_request(module, req);
}
+ /* do not manipulate our control entries */
+ if (ldb_dn_is_special(req->op.mod.message->dn)) {
+ return ldb_next_request(module, req);
+ }
+
schema = dsdb_get_schema(ldb, req);
if (!schema) {
return ldb_next_request(module, req);
int cmp;
bool rodc = false;
int ret;
+ struct ldb_control *sd_recalculate_control;
ldb = ldb_module_get_ctx(module);
return ldb_next_request(module, req);
}
+ sd_recalculate_control = ldb_request_get_control(req,
+ LDB_CONTROL_RECALCULATE_SD_OID);
+ if ((sd_recalculate_control != NULL) &&
+ (sd_recalculate_control->data != NULL))
+ {
+ return ldb_next_request(module, req);
+ }
+
schema = dsdb_get_schema(ldb, req);
if (!schema) {
return ldb_next_request(module, req);
if (!schema->fsmo.update_allowed && !rodc) {
ldb_debug_set(ldb, LDB_DEBUG_ERROR,
- "schema_data_add: updates are not allowed: reject request\n");
+ "schema_data_modify: updates are not allowed: reject request\n");
return LDB_ERR_UNWILLING_TO_PERFORM;
}