summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-26 12:39:44 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-26 13:48:35 +1000
commitb9ec6bb1eb02121f43498681b99891dc17505512 (patch)
treebd18ae2bb12a90f5b54117a4cf10fde3200b6549 /source4/scripting/python
parenta52e7a2c65aef69a205a81b0c0c84abdd54e8f16 (diff)
downloadsamba-b9ec6bb1eb02121f43498681b99891dc17505512.tar.gz
samba-b9ec6bb1eb02121f43498681b99891dc17505512.tar.bz2
samba-b9ec6bb1eb02121f43498681b99891dc17505512.zip
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
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 39ae33bbe6..aa6b6789dd 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -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,