summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/provision/sambadns.py1
-rw-r--r--source4/setup/provision_dnszones_add.ldif3
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/sambadns.py b/source4/scripting/python/samba/provision/sambadns.py
index 93fce60174..b28c0a4e93 100644
--- a/source4/scripting/python/samba/provision/sambadns.py
+++ b/source4/scripting/python/samba/provision/sambadns.py
@@ -165,6 +165,7 @@ def setup_dns_partitions(samdb, domaindn, forestdn, configdn, serverdn):
"DOMAINZONE_DNS": domainzone_dns,
"FORESTZONE_DNS": forestzone_dns,
"CONFIGDN": configdn,
+ "SERVERDN": serverdn,
})
modify_ldif(samdb, "provision_dnszones_modify.ldif", {
diff --git a/source4/setup/provision_dnszones_add.ldif b/source4/setup/provision_dnszones_add.ldif
index ee1a3eb99f..fc814b2b6d 100644
--- a/source4/setup/provision_dnszones_add.ldif
+++ b/source4/setup/provision_dnszones_add.ldif
@@ -65,6 +65,7 @@ objectClass: crossRef
nCName: ${DOMAINZONE_DN}
dnsRoot: ${DOMAINZONE_DNS}
systemFlags: 5
+msDS-NC-Replica-Locations: CN=NTDS Settings,${SERVERDN}
dn: CN=${FORESTZONE_GUID},CN=Partitions,${CONFIGDN}
objectClass: top
@@ -72,3 +73,5 @@ objectClass: crossRef
nCName: ${FORESTZONE_DN}
dnsRoot: ${FORESTZONE_DNS}
systemFlags: 5
+msDS-NC-Replica-Locations: CN=NTDS Settings,${SERVERDN}
+