From 267e0b361693a94be258a21b2b305c5a97de3dda Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Apr 2010 14:39:15 +1000 Subject: s4-drs: make links to foreign partitions non-fatal DN links outside the set of partitions we are replication should be allowed. Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index efb44bfd4c..9dcf24a6cb 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -213,10 +213,9 @@ static int replmd_process_backlink(struct ldb_module *module, struct la_backlink */ ret = dsdb_module_dn_by_guid(module, tmp_ctx, &bl->target_guid, &target_dn); if (ret != LDB_SUCCESS) { - ldb_asprintf_errstring(ldb, "Failed to find target DN for linked attribute with GUID %s\n", - GUID_string(bl, &bl->target_guid)); - talloc_free(tmp_ctx); - return ret; + DEBUG(2,(__location__ ": WARNING: Failed to find target DN for linked attribute with GUID %s\n", + GUID_string(bl, &bl->target_guid))); + return LDB_SUCCESS; } ret = dsdb_module_dn_by_guid(module, tmp_ctx, &bl->forward_guid, &source_dn); @@ -3720,10 +3719,9 @@ linked_attributes[0]: old DN value */ ret = dsdb_module_dn_by_guid(module, dsdb_dn, &guid, &dsdb_dn->dn); if (ret != LDB_SUCCESS) { - ldb_asprintf_errstring(ldb, __location__ ": Failed to re-resolve GUID %s", - GUID_string(tmp_ctx, &guid)); - talloc_free(tmp_ctx); - return ret; + DEBUG(2,(__location__ ": WARNING: Failed to re-resolve GUID %s - using %s", + GUID_string(tmp_ctx, &guid), + ldb_dn_get_linearized(dsdb_dn->dn))); } /* see if this link already exists */ -- cgit