1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

s4:provision: move Samba4 specific DNS stuff to its own file

metze
This commit is contained in:
Stefan Metzmacher
2010-06-25 13:32:39 +02:00
parent c6b21931c6
commit 6ab234cec9
4 changed files with 39 additions and 21 deletions

View File

@ -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