mirror of
https://github.com/samba-team/samba.git
synced 2025-07-04 00:59:13 +03:00
s4:provision Only create references to our server DN after the self join
This will ensure that the GUID can be filled in correctly, and assist us to validate DN targets in the future. Andrew Bartlett
This commit is contained in:
@ -787,12 +787,22 @@ def setup_self_join(samdb, names,
|
||||
"DNSDOMAIN": names.dnsdomain,
|
||||
"SAMBA_VERSION_STRING": version,
|
||||
"DOMAIN_CONTROLLER_FUNCTIONALITY": str(domainControllerFunctionality)})
|
||||
|
||||
setup_add_ldif(samdb, setup_path("provision_group_policy.ldif"), {
|
||||
"POLICYGUID": policyguid,
|
||||
"DNSDOMAIN": names.dnsdomain,
|
||||
"DOMAINSID": str(domainsid),
|
||||
"DOMAINDN": names.domaindn})
|
||||
|
||||
# Setup fSMORoleOwner entries to point at the newly created DC entry
|
||||
setup_modify_ldif(samdb, setup_path("provision_self_join_modify.ldif"), {
|
||||
"DOMAINDN": names.domaindn,
|
||||
"CONFIGDN": names.configdn,
|
||||
"SCHEMADN": names.schemadn,
|
||||
"DEFAULTSITE": names.sitename,
|
||||
"SERVERDN": names.serverdn
|
||||
})
|
||||
|
||||
|
||||
def setup_samdb(path, setup_path, session_info, credentials, lp,
|
||||
names, message,
|
||||
|
Reference in New Issue
Block a user