diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-08-24 15:39:51 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-13 15:37:11 +1000 |
commit | 6635bb70d32d5214bc027428ac4a3737e8327c17 (patch) | |
tree | cb10c836cbf06c67d612918d47f05c16b394b390 /source4/setup | |
parent | 6d9b0ee26ea05ac23fe8b4f7e1fd756045c0b409 (diff) | |
download | samba-6635bb70d32d5214bc027428ac4a3737e8327c17.tar.gz samba-6635bb70d32d5214bc027428ac4a3737e8327c17.tar.bz2 samba-6635bb70d32d5214bc027428ac4a3737e8327c17.zip |
s4-provision Add initial support for joining as a new subdomain
To do this we need to reorganise a lot of the provision code, so that
we can create the framework for the inbound replicaton of the config
and schema partitions and then add in the new subdomain locally.
Andrew Bartlett
Diffstat (limited to 'source4/setup')
-rw-r--r-- | source4/setup/provision_self_join.ldif | 35 | ||||
-rw-r--r-- | source4/setup/provision_self_join_config.ldif | 33 | ||||
-rw-r--r-- | source4/setup/provision_self_join_modify.ldif | 20 | ||||
-rw-r--r-- | source4/setup/provision_self_join_modify_config.ldif | 14 |
4 files changed, 52 insertions, 50 deletions
diff --git a/source4/setup/provision_self_join.ldif b/source4/setup/provision_self_join.ldif index 9124ab50ef..b19db78b72 100644 --- a/source4/setup/provision_self_join.ldif +++ b/source4/setup/provision_self_join.ldif @@ -20,38 +20,3 @@ sAMAccountName: ${NETBIOSNAME}$ userAccountControl: 532480 clearTextPassword:: ${MACHINEPASS_B64} objectSid: ${DOMAINSID}-${DCRID} - -# Here are missing the objects for the NTFRS subscription since we don't -# support this technique yet. - -# Objects under "Configuration/Sites/<Default sitename>/Servers" - -dn: ${SERVERDN} -objectClass: top -objectClass: server -systemFlags: 1375731712 -dNSHostName: ${DNSNAME} -serverReference: CN=${NETBIOSNAME},OU=Domain Controllers,${DOMAINDN} - -dn: CN=NTDS Settings,${SERVERDN} -objectClass: top -objectClass: applicationSettings -objectClass: nTDSDSA -dMDLocation: ${SCHEMADN} -hasMasterNCs: ${CONFIGDN} -hasMasterNCs: ${SCHEMADN} -hasMasterNCs: ${DOMAINDN} -invocationId: ${INVOCATIONID} -msDS-Behavior-Version: ${DOMAIN_CONTROLLER_FUNCTIONALITY} -msDS-HasDomainNCs: ${DOMAINDN} -# "msDS-HasInstantiatedNCs"s for DNS is added from provision_dnszones_modify.ldif -msDS-HasInstantiatedNCs: B:8:0000000D:${CONFIGDN} -msDS-HasInstantiatedNCs: B:8:0000000D:${SCHEMADN} -msDS-HasInstantiatedNCs: B:8:00000005:${DOMAINDN} -# "msDS-hasMasterNCs"s for DNS is added from provision_dnszones_modify.ldif -msDS-hasMasterNCs: ${CONFIGDN} -msDS-hasMasterNCs: ${SCHEMADN} -msDS-hasMasterNCs: ${DOMAINDN} -options: 1 -systemFlags: 33554432 -${NTDSGUID} diff --git a/source4/setup/provision_self_join_config.ldif b/source4/setup/provision_self_join_config.ldif new file mode 100644 index 0000000000..e0f1a5a1ad --- /dev/null +++ b/source4/setup/provision_self_join_config.ldif @@ -0,0 +1,33 @@ +# Here are missing the objects for the NTFRS subscription since we don't +# support this technique yet. + +# Objects under "Configuration/Sites/<Default sitename>/Servers" + +dn: ${SERVERDN} +objectClass: top +objectClass: server +systemFlags: 1375731712 +dNSHostName: ${DNSNAME} + +dn: CN=NTDS Settings,${SERVERDN} +objectClass: top +objectClass: applicationSettings +objectClass: nTDSDSA +dMDLocation: ${SCHEMADN} +hasMasterNCs: ${CONFIGDN} +hasMasterNCs: ${SCHEMADN} +hasMasterNCs: ${DOMAINDN} +invocationId: ${INVOCATIONID} +msDS-Behavior-Version: ${DOMAIN_CONTROLLER_FUNCTIONALITY} +msDS-HasDomainNCs: ${DOMAINDN} +# "msDS-HasInstantiatedNCs"s for DNS is added from provision_dnszones_modify.ldif +msDS-HasInstantiatedNCs: B:8:0000000D:${CONFIGDN} +msDS-HasInstantiatedNCs: B:8:0000000D:${SCHEMADN} +msDS-HasInstantiatedNCs: B:8:00000005:${DOMAINDN} +# "msDS-hasMasterNCs"s for DNS is added from provision_dnszones_modify.ldif +msDS-hasMasterNCs: ${CONFIGDN} +msDS-hasMasterNCs: ${SCHEMADN} +msDS-hasMasterNCs: ${DOMAINDN} +options: 1 +systemFlags: 33554432 +${NTDSGUID} diff --git a/source4/setup/provision_self_join_modify.ldif b/source4/setup/provision_self_join_modify.ldif index aba1b862e1..7b5c562ed0 100644 --- a/source4/setup/provision_self_join_modify.ldif +++ b/source4/setup/provision_self_join_modify.ldif @@ -5,11 +5,6 @@ fSMORoleOwner: CN=NTDS Settings,${SERVERDN} replace: rIDManagerReference rIDManagerReference: CN=RID Manager$,CN=System,${DOMAINDN} -dn: ${SCHEMADN} -changetype: modify -replace: fSMORoleOwner -fSMORoleOwner: CN=NTDS Settings,${SERVERDN} - dn: CN=Infrastructure,${DOMAINDN} changetype: modify replace: fSMORoleOwner @@ -20,16 +15,6 @@ changetype: modify replace: fSMORoleOwner fSMORoleOwner: CN=NTDS Settings,${SERVERDN} -dn: CN=Partitions,${CONFIGDN} -changetype: modify -replace: fSMORoleOwner -fSMORoleOwner: CN=NTDS Settings,${SERVERDN} - -dn: CN=NTDS Site Settings,CN=${DEFAULTSITE},CN=Sites,${CONFIGDN} -changetype: modify -replace: interSiteTopologyGenerator -interSiteTopologyGenerator: CN=NTDS Settings,${SERVERDN} - dn: CN=RID Set,CN=${NETBIOSNAME},OU=Domain Controllers,${DOMAINDN} changetype: add objectClass: rIDSet @@ -42,3 +27,8 @@ dn: CN=${NETBIOSNAME},OU=Domain Controllers,${DOMAINDN} changetype: modify add: rIDSetReferences rIDSetReferences: CN=RID Set,CN=${NETBIOSNAME},OU=Domain Controllers,${DOMAINDN} + +dn: ${SERVERDN} +changetype: modify +add: serverReference +serverReference: CN=${NETBIOSNAME},OU=Domain Controllers,${DOMAINDN} diff --git a/source4/setup/provision_self_join_modify_config.ldif b/source4/setup/provision_self_join_modify_config.ldif new file mode 100644 index 0000000000..48a70924b8 --- /dev/null +++ b/source4/setup/provision_self_join_modify_config.ldif @@ -0,0 +1,14 @@ +dn: ${SCHEMADN} +changetype: modify +replace: fSMORoleOwner +fSMORoleOwner: CN=NTDS Settings,${SERVERDN} + +dn: CN=Partitions,${CONFIGDN} +changetype: modify +replace: fSMORoleOwner +fSMORoleOwner: CN=NTDS Settings,${SERVERDN} + +dn: CN=NTDS Site Settings,CN=${DEFAULTSITE},CN=Sites,${CONFIGDN} +changetype: modify +replace: interSiteTopologyGenerator +interSiteTopologyGenerator: CN=NTDS Settings,${SERVERDN} |