mirror of
https://github.com/samba-team/samba.git
synced 2025-02-19 21:57:57 +03:00
s4-provision: also create the dns_update_list when running net vampire
We need the list when joining a windows domain, so we can automatically maintain the right DNS entries on the Windows DNS server
This commit is contained in:
parent
8cb721b293
commit
97d65774d4
@ -1404,6 +1404,9 @@ def provision(setup_dir, message, session_info,
|
|||||||
realm=names.realm)
|
realm=names.realm)
|
||||||
message("A Kerberos configuration suitable for Samba 4 has been generated at %s" % paths.krb5conf)
|
message("A Kerberos configuration suitable for Samba 4 has been generated at %s" % paths.krb5conf)
|
||||||
|
|
||||||
|
if serverrole == "domain controller":
|
||||||
|
create_dns_update_list(lp, message, paths, setup_path)
|
||||||
|
|
||||||
provision_backend.post_setup()
|
provision_backend.post_setup()
|
||||||
provision_backend.shutdown()
|
provision_backend.shutdown()
|
||||||
|
|
||||||
@ -1573,6 +1576,13 @@ def create_zone_file(lp, message, paths, targetdir, setup_path, dnsdomain,
|
|||||||
os.system(rndc + " unfreeze " + lp.get("realm"))
|
os.system(rndc + " unfreeze " + lp.get("realm"))
|
||||||
|
|
||||||
|
|
||||||
|
def create_dns_update_list(lp, message, paths, setup_path):
|
||||||
|
"""Write out a dns_update_list file"""
|
||||||
|
# note that we use no variable substitution on this file
|
||||||
|
# the substitution is done at runtime by samba_dnsupdate
|
||||||
|
setup_file(setup_path("dns_update_list"), paths.dns_update_list, None)
|
||||||
|
|
||||||
|
|
||||||
def create_named_conf(paths, setup_path, realm, dnsdomain,
|
def create_named_conf(paths, setup_path, realm, dnsdomain,
|
||||||
private_dir):
|
private_dir):
|
||||||
"""Write out a file containing zone statements suitable for inclusion in a
|
"""Write out a file containing zone statements suitable for inclusion in a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user