mirror of
https://github.com/samba-team/samba.git
synced 2025-07-25 00:59:11 +03:00
Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.
This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).
Andrew Bartlett
(This used to be commit bda6a38b05
)
This commit is contained in:
@ -763,9 +763,15 @@ def setup_samdb(path, setup_path, session_info, credentials, lp,
|
||||
|
||||
try:
|
||||
message("Adding DomainDN: %s (permitted to fail)" % names.domaindn)
|
||||
if serverrole == "domain controller":
|
||||
domain_oc = "domainDNS"
|
||||
else:
|
||||
domain_oc = "samba4LocalDomain"
|
||||
|
||||
setup_add_ldif(samdb, setup_path("provision_basedn.ldif"), {
|
||||
"DOMAINDN": names.domaindn,
|
||||
"ACI": aci,
|
||||
"DOMAIN_OC": domain_oc
|
||||
})
|
||||
|
||||
message("Modifying DomainDN: " + names.domaindn + "")
|
||||
|
Reference in New Issue
Block a user