diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-06-25 13:32:39 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-06-26 09:50:56 +0200 |
commit | 6ab234cec9e1ed13ffd5d2d117417f7dd71c44f1 (patch) | |
tree | 493bdea6079d40c1aaf53b64ef4f0ab4830070ce /source4/scripting/python | |
parent | c6b21931c6574322c8740f1a67f9125437c42c0d (diff) | |
download | samba-6ab234cec9e1ed13ffd5d2d117417f7dd71c44f1.tar.gz samba-6ab234cec9e1ed13ffd5d2d117417f7dd71c44f1.tar.bz2 samba-6ab234cec9e1ed13ffd5d2d117417f7dd71c44f1.zip |
s4:provision: move Samba4 specific DNS stuff to its own file
metze
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index bb8b93e268..84045da19f 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -920,11 +920,18 @@ def setup_self_join(samdb, names, "SERVERDN": names.serverdn, "NETBIOSNAME": names.netbiosname, "NTDSGUID": names.ntdsguid, - "DNSPASS_B64": b64encode(dnspass), "RIDALLOCATIONSTART": str(next_rid + 100), "RIDALLOCATIONEND": str(next_rid + 100 + 499), }) + # This is Samba4 specific and should be replacted by the correct + # DNS AD-style setup + setup_add_ldif(samdb, setup_path("provision_dns_add.ldif"), { + "DNSDOMAIN": names.dnsdomain, + "DOMAINDN": names.domaindn, + "DNSPASS_B64": b64encode(dnspass), + }) + def getpolicypath(sysvolpath, dnsdomain, guid): if guid[0] != "{": guid = "{%s}" % guid |