summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/libjs/provision.js3
-rw-r--r--source4/setup/provision.ldif3
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index 38f3fc066e..b6a7c5978b 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -268,6 +268,7 @@ function provision_guess()
var subobj = new Object();
var nss = nss_init();
var lp = loadparm_init();
+ var rdn_list;
random_init(local);
subobj.REALM = lp.get("realm");
@@ -302,6 +303,8 @@ function provision_guess()
strlower(subobj.HOSTNAME),
subobj.DNSDOMAIN);
subobj.BASEDN = "DC=" + join(",DC=", split(".", subobj.REALM));
+ rdn_list = split(".", subobj.REALM);
+ subobj.RDN_DC = rdn_list[0];
return subobj;
}
diff --git a/source4/setup/provision.ldif b/source4/setup/provision.ldif
index c42c73eda4..d70d936988 100644
--- a/source4/setup/provision.ldif
+++ b/source4/setup/provision.ldif
@@ -5,9 +5,8 @@ dn: ${BASEDN}
objectClass: top
objectClass: domain
objectClass: domainDNS
-flatname: ${DOMAIN}
dnsDomain: ${DNSDOMAIN}
-dc: ${DOMAIN}
+dc: ${RDN_DC}
objectGUID: ${DOMAINGUID}
creationTime: ${NTTIME}
forceLogoff: 0x8000000000000000