diff options
-rw-r--r-- | source4/scripting/python/samba/provision.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 6adc79f2b1..2dd664303d 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -1404,6 +1404,9 @@ def provision(setup_dir, message, session_info, realm=names.realm) 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.shutdown() @@ -1573,6 +1576,13 @@ def create_zone_file(lp, message, paths, targetdir, setup_path, dnsdomain, 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, private_dir): """Write out a file containing zone statements suitable for inclusion in a |