KCC: set site topo_generator in RO case, for debug clarity
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 20 Mar 2015 03:02:58 +0000 (16:02 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 29 May 2015 04:58:26 +0000 (06:58 +0200)
This has no actual effect except that it makes the Site object print with
the site_topo_generator that is actually used (because RODCs are always
their own topology generators and this variable doesn't affect that).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc_utils.py

index 0a49448f5ddf055465d1ad36ba6d1f9fd2ff293b..3755c7ecd4ff730f7868a7feffac9d02b841e856 100644 (file)
@@ -1472,6 +1472,7 @@ class Site(object):
         # The KCC on an RODC always acts as an ISTG for itself
         if mydsa.dsa_is_ro:
             mydsa.dsa_is_istg = True
+            self.site_topo_generator = mydsa.dsa_dnstr
             return True
 
         c_rep = get_dsa_config_rep(mydsa)