From 24ae662eaee03a0e5d1046acf6882bc6842f518a Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 25 Jun 2015 16:38:29 +1200 Subject: [PATCH] KCC: stop --forget-intersite-links forgetting local links It will still forget intrasite links on other sites, but that in theory should not matter. It will still break your network, and is only useful for debugging. Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- python/samba/kcc/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/samba/kcc/__init__.py b/python/samba/kcc/__init__.py index 039d54a5f60..9e69b391407 100644 --- a/python/samba/kcc/__init__.py +++ b/python/samba/kcc/__init__.py @@ -2507,7 +2507,9 @@ class KCC(object): for dsa in self.my_site.dsa_table.values(): dsa.connect_table = dict((k, v) for k, v in dsa.connect_table.items() - if v.is_rodc_topology()) + if v.is_rodc_topology() or + (v.from_dnstr not in + self.my_site.dsa_table)) self.plot_all_connections('dsa_forgotten_local') if forget_intersite_links: