From a2d45cf49e4976d55261d01df955e412ac7fa73f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 9 Oct 2013 09:37:52 +0200 Subject: provision/sambadns: CN=MicrosoftDNS,CN=System, is relative to DOMAINDN Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Oct 10 10:24:55 CEST 2013 on sn-devel-104 --- python/samba/provision/sambadns.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'python') diff --git a/python/samba/provision/sambadns.py b/python/samba/provision/sambadns.py index 4acc24b699..46cfc89f4c 100644 --- a/python/samba/provision/sambadns.py +++ b/python/samba/provision/sambadns.py @@ -1021,18 +1021,18 @@ def setup_ad_dns(samdb, secretsdb, domainsid, names, paths, lp, logger, add_dns_accounts(samdb, names.domaindn) # If dns_backend is BIND9_FLATFILE - # Populate only CN=MicrosoftDNS,CN=System, + # Populate only CN=MicrosoftDNS,CN=System, # # If dns_backend is SAMBA_INTERNAL or BIND9_DLZ # Populate DNS partitions # If os_level < 2003 (DS_DOMAIN_FUNCTION_2000) - # All dns records are in CN=MicrosoftDNS,CN=System, + # All dns records are in CN=MicrosoftDNS,CN=System, # # If os_level >= 2003 (DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2008, # DS_DOMAIN_FUNCTION_2008_R2) - # Root server records are in CN=MicrosoftDNS,CN=System, - # Domain records are in CN=MicrosoftDNS,CN=System, + # Root server records are in CN=MicrosoftDNS,CN=System, + # Domain records are in CN=MicrosoftDNS,CN=System, # Domain records are in CN=MicrosoftDNS,DC=DomainDnsZones, # Forest records are in CN=MicrosoftDNS,DC=ForestDnsZones, domaindn = names.domaindn @@ -1047,13 +1047,13 @@ def setup_ad_dns(samdb, secretsdb, domainsid, names, paths, lp, logger, domainguid = get_domainguid(samdb, domaindn) # Create CN=System - logger.info("Creating CN=MicrosoftDNS,CN=System,%s" % forestdn) - create_dns_legacy(samdb, domainsid, forestdn, dnsadmins_sid) + logger.info("Creating CN=MicrosoftDNS,CN=System,%s" % domaindn) + create_dns_legacy(samdb, domainsid, domaindn, dnsadmins_sid) if os_level == DS_DOMAIN_FUNCTION_2000: # Populating legacy dns - logger.info("Populating CN=MicrosoftDNS,CN=System,%s" % forestdn) - fill_dns_data_legacy(samdb, domainsid, forestdn, dnsdomain, site, + logger.info("Populating CN=MicrosoftDNS,CN=System,%s" % domaindn) + fill_dns_data_legacy(samdb, domainsid, domaindn, dnsdomain, site, hostname, hostip, hostip6, dnsadmins_sid) elif dns_backend in ("SAMBA_INTERNAL", "BIND9_DLZ") and \ -- cgit