diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-26 17:22:44 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-26 18:19:27 +1100 |
commit | 97d65774d4c91ab046bf67c7c99a47a37b340d08 (patch) | |
tree | d2c98b1ac8aa7e4e5d28859a769ae50ced12d2a5 /source4/scripting | |
parent | 8cb721b2936e09f1db2a0b565e144041d4294173 (diff) | |
download | samba-97d65774d4c91ab046bf67c7c99a47a37b340d08.tar.gz samba-97d65774d4c91ab046bf67c7c99a47a37b340d08.tar.bz2 samba-97d65774d4c91ab046bf67c7c99a47a37b340d08.zip |
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
Diffstat (limited to 'source4/scripting')
-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 |