diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-12 23:52:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:06 -0500 |
commit | 342d229b4082004d30fa7018c04bba66da48a91b (patch) | |
tree | c3efe11c39d9561cde510ad38dcebba25a31fd7a /swat | |
parent | f642fd96d0b196e7bb71bb73ffbefac32786d25f (diff) | |
download | samba-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.esp | 2 |
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)); } |