From b774e35ef62ec7388a8b371231e5cc8ce984cb9a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Jul 2012 16:25:23 -0700 Subject: [PATCH] Fix bug #9016 - Connection to outbound trusted domain goes offline. By the time we've gotten to init_dc_connection_network() we shouldn't be second guessing the caller by calling winbindd_can_contact_domain(). If for some reason we do need to restrict the contact list here we can add a condition to only contact the primary domain or domains listed in the tdc cache, but I don't think that's neccessary. Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Jul 14 03:17:57 CEST 2012 on sn-devel-104 (cherry picked from commit 726ecf6a915ff534af4076e9d0cdebf8b5435d61) (cherry picked from commit d4faae3dbdfdd600bbf9bddb2589b8a6dc8434b6) --- source3/winbindd/winbindd_cm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 7d7244ad1fe..d129e1f61c7 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -1769,12 +1769,6 @@ static NTSTATUS init_dc_connection_network(struct winbindd_domain *domain) return NT_STATUS_OK; } - if (!winbindd_can_contact_domain(domain)) { - invalidate_cm_connection(&domain->conn); - domain->initialized = True; - return NT_STATUS_OK; - } - if (connection_ok(domain)) { if (!domain->initialized) { set_dc_type_and_flags(domain); -- 2.11.4.GIT