diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-28 17:20:13 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-02 08:16:54 +1100 |
commit | 5dd6e089f136d3ce04127b930da59913704bf083 (patch) | |
tree | 28d7d7a96c3f6e03d9ca410eb262d9f2d639ae16 /source4/dsdb/samdb | |
parent | 38160deac4d6f4a8ae22fcedcf55114bc0372f31 (diff) | |
download | samba-5dd6e089f136d3ce04127b930da59913704bf083.tar.gz samba-5dd6e089f136d3ce04127b930da59913704bf083.tar.bz2 samba-5dd6e089f136d3ce04127b930da59913704bf083.zip |
s4-drs: use dsdb_module_rename()
Use the new dsdb_module_rename() for DRS rename handling, instead of
ldb_rename(). This stops us going to the top of the module stack on a
rename.
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index baae44a30d..b9d9a744f1 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -2571,10 +2571,9 @@ static int replmd_replicated_apply_merge(struct replmd_replicated_request *ar) ldb_debug(ldb, LDB_DEBUG_TRACE, "replmd_replicated_request rename %s => %s\n", ldb_dn_get_linearized(ar->search_msg->dn), ldb_dn_get_linearized(msg->dn)); - /* we can't use dsdb_module_rename() here as we need - the rename call to be intercepted by this module, to - allow it to process linked attribute changes */ - if (ldb_rename(ldb, ar->search_msg->dn, msg->dn) != LDB_SUCCESS) { + if (dsdb_module_rename(ar->module, + ar->search_msg->dn, msg->dn, + DSDB_FLAG_OWN_MODULE) != LDB_SUCCESS) { ldb_debug(ldb, LDB_DEBUG_FATAL, "replmd_replicated_request rename %s => %s failed - %s\n", ldb_dn_get_linearized(ar->search_msg->dn), ldb_dn_get_linearized(msg->dn), |