s4:provision: split out provision_self_join_modify_schema.ldif
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Mar 2019 10:27:14 +0000 (11:27 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 11 Apr 2019 04:17:10 +0000 (04:17 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13799

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/provision/__init__.py
source4/setup/provision_self_join_modify_config.ldif
source4/setup/provision_self_join_modify_schema.ldif [new file with mode: 0644]

index 0a3a7b89cb7ae4a553bd831a5a73148c36f3b237..957cdaaf874772c97c953f92e293b24c6ef11c7d 100644 (file)
@@ -1193,11 +1193,15 @@ def setup_self_join(samdb, admin_session_info, names, fill, machinepass,
                 "DOMAIN_CONTROLLER_FUNCTIONALITY": str(
                     domainControllerFunctionality)})
 
                 "DOMAIN_CONTROLLER_FUNCTIONALITY": str(
                     domainControllerFunctionality)})
 
-    # Setup fSMORoleOwner entries to point at the newly created DC entry
+        # Setup fSMORoleOwner entries to point at the newly created DC entry
+        setup_modify_ldif(samdb,
+                          setup_path("provision_self_join_modify_schema.ldif"), {
+                              "SCHEMADN": names.schemadn,
+                              "SERVERDN": names.serverdn,
+                          })
         setup_modify_ldif(samdb,
                           setup_path("provision_self_join_modify_config.ldif"), {
                               "CONFIGDN": names.configdn,
         setup_modify_ldif(samdb,
                           setup_path("provision_self_join_modify_config.ldif"), {
                               "CONFIGDN": names.configdn,
-                              "SCHEMADN": names.schemadn,
                               "DEFAULTSITE": names.sitename,
                               "NETBIOSNAME": names.netbiosname,
                               "SERVERDN": names.serverdn,
                               "DEFAULTSITE": names.sitename,
                               "NETBIOSNAME": names.netbiosname,
                               "SERVERDN": names.serverdn,
index 48a70924b89efba42cb3ec51cfcb504827998f64..2d8e4c929449d86e9143bb4410ebf3ce018bc48a 100644 (file)
@@ -1,8 +1,3 @@
-dn: ${SCHEMADN}
-changetype: modify
-replace: fSMORoleOwner
-fSMORoleOwner: CN=NTDS Settings,${SERVERDN}
-
 dn: CN=Partitions,${CONFIGDN}
 changetype: modify
 replace: fSMORoleOwner
 dn: CN=Partitions,${CONFIGDN}
 changetype: modify
 replace: fSMORoleOwner
diff --git a/source4/setup/provision_self_join_modify_schema.ldif b/source4/setup/provision_self_join_modify_schema.ldif
new file mode 100644 (file)
index 0000000..edb0620
--- /dev/null
@@ -0,0 +1,4 @@
+dn: ${SCHEMADN}
+changetype: modify
+replace: fSMORoleOwner
+fSMORoleOwner: CN=NTDS Settings,${SERVERDN}