s4-drs: use DSDB_FLAG_OWN_MODULE
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Dec 2009 10:26:15 +0000 (21:26 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Jan 2010 21:16:53 +0000 (08:16 +1100)
We need DRS driven replication changes to update replPropertyMetaData,
so it needs to call into the repl_meta_data module logic

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index ed0a96b14f5e9164cf9c1b11da4cadce852fe2ac..ae7dcc19546f516aa612d7bc95925be0fe08b426 100644 (file)
@@ -2154,7 +2154,7 @@ static int replmd_delete_remove_link(struct ldb_module *module,
                el2->values = &dn_val;
                el2->num_values = 1;
 
-               ret = dsdb_module_modify(module, msg, 0);
+               ret = dsdb_module_modify(module, msg, DSDB_FLAG_OWN_MODULE);
                if (ret != LDB_SUCCESS) {
                        talloc_free(tmp_ctx);
                        return ret;
@@ -2354,8 +2354,8 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req)
                el->flags = LDB_FLAG_MOD_REPLACE;
        }
 
-       ret = dsdb_module_modify(module, msg, 0);
-       if (ret != LDB_SUCCESS){
+       ret = dsdb_module_modify(module, msg, DSDB_FLAG_OWN_MODULE);
+       if (ret != LDB_SUCCESS) {
                ldb_asprintf_errstring(ldb, "replmd_delete: Failed to modify object %s in delete - %s",
                                       ldb_dn_get_linearized(old_dn), ldb_errstring(ldb));
                talloc_free(tmp_ctx);