summaryrefslogtreecommitdiff
path: root/swat/install
diff options
context:
space:
mode:
Diffstat (limited to 'swat/install')
-rw-r--r--swat/install/provision.esp13
1 files changed, 12 insertions, 1 deletions
diff --git a/swat/install/provision.esp b/swat/install/provision.esp
index 5c0aa4e77e..3eb7ba720d 100644
--- a/swat/install/provision.esp
+++ b/swat/install/provision.esp
@@ -8,7 +8,15 @@
<%
var f = FormObj("Provisioning", 9, 2);
-var i, subobj = provision_guess();
+var i;
+var lp = loadparm_init();
+
+if (lp.get("realm") == "") {
+ lp.set("realm", lp.get("workgroup") + ".example.com");
+}
+
+
+var subobj = provision_guess();
f.element[0].label = "Realm";
f.element[0].name = "REALM";
@@ -44,6 +52,9 @@ if (form['submit'] == "Provision") {
for (i=0;i<f.element.length;i++) {
f.element[i].value = subobj[f.element[i].name];
}
+
+lp.set("realm", subobj.REALM);
+
if (form['submit'] == "Provision") {
provision(subobj, writefln);
} else {