From f8c1258d01fa631b719579e186b28027a34887cf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 21 Jul 2005 11:28:24 +0000 Subject: r8677: The first part of the domain name may not be equal to the netbios domain name. Remove the use of flatname from the main domain object, we no longer reference it. Andrew Bartlett (This used to be commit 2303e24be74570187b23c3d31d0433263c83ba7e) --- source4/scripting/libjs/provision.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/scripting') 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; } -- cgit