summaryrefslogtreecommitdiffstats
path: root/swat
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-12 23:52:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:06 -0500
commit342d229b4082004d30fa7018c04bba66da48a91b (patch)
treec3efe11c39d9561cde510ad38dcebba25a31fd7a /swat
parentf642fd96d0b196e7bb71bb73ffbefac32786d25f (diff)
downloadsamba-342d229b4082004d30fa7018c04bba66da48a91b.tar.gz
samba-342d229b4082004d30fa7018c04bba66da48a91b.tar.xz
samba-342d229b4082004d30fa7018c04bba66da48a91b.zip
r10190: Do some very basic input checking when provisioning.
(This used to be commit 87f25fe49caa78422582337c5208a331ef5b8c15)
Diffstat (limited to 'swat')
-rw-r--r--swat/install/provision.esp2
1 files changed, 2 insertions, 0 deletions
diff --git a/swat/install/provision.esp b/swat/install/provision.esp
index de823ddcde1..5f91451cbc3 100644
--- a/swat/install/provision.esp
+++ b/swat/install/provision.esp
@@ -58,6 +58,8 @@ if (form['submit'] == "Provision") {
} else if (subobj.ADMINPASS == "") {
write("<h3>You must choose an administrator password. Please try again.</h3>");
f.display();
+ } else if (!provision_validate(subobj, writefln)) {
+ f.display();
} else {
provision(subobj, writefln, false, provision_default_paths(subobj));
}