1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-06 08:59:08 +03:00

s4 provision: split up DNS provisioning into generic and samba-specific ldifs

Signed-off-by: Kai Blin <kai@samba.org>
This commit is contained in:
Kai Blin
2011-06-26 00:36:25 +02:00
parent 0b8184d9d4
commit a8d3bdb48d
3 changed files with 31 additions and 21 deletions

View File

@ -1101,9 +1101,10 @@ def setup_self_join(samdb, names, machinepass, dnspass,
"RIDALLOCATIONEND": str(next_rid + 100 + 499),
})
# This is partially Samba4 specific and should be replaced by the correct
setup_ad_dns(samdb, names)
# This is Samba4 specific and should be replaced by the correct
# DNS AD-style setup
setup_add_ldif(samdb, setup_path("provision_dns_add.ldif"), {
setup_add_ldif(samdb, setup_path("provision_dns_add_samba.ldif"), {
"DNSDOMAIN": names.dnsdomain,
"DOMAINDN": names.domaindn,
"DNSPASS_B64": b64encode(dnspass.encode('utf-16-le')),
@ -1113,6 +1114,13 @@ def setup_self_join(samdb, names, machinepass, dnspass,
})
def setup_ad_dns(samdb, names):
setup_add_ldif(samdb, setup_path("provision_dns_add.ldif"), {
"DOMAINDN": names.domaindn,
"DNSNAME" : '%s.%s' % (
names.netbiosname.lower(), names.dnsdomain.lower())
})
def getpolicypath(sysvolpath, dnsdomain, guid):
"""Return the physical path of policy given its guid.