mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
samba_upgradeprovision: detect dns_backend for the reference provision
If we have a DomainDnsZone partition, we use BIND9_DLZ as backend and fix errors in the ForestDnsZone and DomainDnsZone partitions. Note: this should work fine also for SAMBA_INTERNAL. If the current setup doesn't use dns specific partitions (e.g. alpha13 setups) we pass dns_backend=BIND9_FLATFILE. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
b855df254d
commit
58d6d884cf
@ -242,7 +242,6 @@ def newprovision(names, creds, session, smbconf, provdir, logger):
|
||||
shutil.rmtree(provdir)
|
||||
os.mkdir(provdir)
|
||||
logger.info("Provision stored in %s", provdir)
|
||||
dns_backend="BIND9_DLZ"
|
||||
return provision(logger, session, creds, smbconf=smbconf,
|
||||
targetdir=provdir, samdb_fill=FILL_FULL, realm=names.realm,
|
||||
domain=names.domain, domainguid=names.domainguid,
|
||||
@ -255,7 +254,7 @@ def newprovision(names, creds, session, smbconf, provdir, logger):
|
||||
serverrole="domain controller",
|
||||
backend_type=None, ldapadminpass=None, ol_mmr_urls=None,
|
||||
slapd_path=None,
|
||||
dom_for_fun_level=names.domainlevel, dns_backend=dns_backend,
|
||||
dom_for_fun_level=names.domainlevel, dns_backend=names.dns_backend,
|
||||
useeadb=True, use_ntvfs=True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user