From 15c1801a5c13479f1bf67e0e3c1ad7c0af8e3af7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 10 Sep 2007 03:44:47 +0000 Subject: r25051: Move SWAT back to the old-style form-submit modal. The Web 2.0, async client tools were really interesting, but without developer backing they remain impossible to support into a release. The most interesting app was the LDB browser, and I intend to replace this with phpLdapAdmin, preconfigured for Apache during provision. This also removes the need to 'compile' SWAT on SVN checkouts. Andrew Bartlett (This used to be commit cda965e908055d45b1c05bc29cc791f7238d2fae) --- webapps/install/provision.esp | 89 ------------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 webapps/install/provision.esp (limited to 'webapps/install/provision.esp') diff --git a/webapps/install/provision.esp b/webapps/install/provision.esp deleted file mode 100644 index 6183722cb4..0000000000 --- a/webapps/install/provision.esp +++ /dev/null @@ -1,89 +0,0 @@ -<% page_header("columns", "Provisioning", "install"); - - include("/scripting/forms.js"); - libinclude("base.js"); - libinclude("provision.js"); -%> - -

Samba4 provisioning

- -<% -var f = FormObj("Provisioning", 0, 2); -var i; -var lp = loadparm_init(); - -if (session.authinfo.user_class == "ADMINISTRATOR" - || session.authinfo.user_class == "SYSTEM") { - - if (lp.get("realm") == "") { - lp.set("realm", lp.get("workgroup") + ".example.com"); - } - - var subobj = provision_guess(); - /* Don't supply default password for web interface */ - subobj.ADMINPASS = ""; - - f.add("REALM", "DNS Domain Name"); - f.add("DOMAIN", "NetBIOS Domain Name"); - f.add("HOSTNAME", "Hostname"); - f.add("ADMINPASS", "Administrator Password", "password"); - f.add("CONFIRM", "Confirm Password", "password"); - f.add("DOMAINSID", "Domain SID"); - f.add("HOSTIP", "Host IP"); - f.add("DEFAULTSITE", "Default Site"); - f.submit[0] = "Provision"; - f.submit[1] = "Cancel"; - - if (form['submit'] == "Cancel") { - redirect("/"); - } - - if (form['submit'] == "Provision") { - for (r in form) { - subobj[r] = form[r]; - } - } - - for (i=0;iPasswords don't match. Please try again."); - f.display(); - } else if (subobj.ADMINPASS == "") { - write("

You must choose an administrator password. Please try again.

"); - f.display(); - } else if (!provision_validate(subobj, writefln)) { - f.display(); - } else { - var paths = provision_default_paths(subobj); - if (!provision(subobj, writefln, false, paths, - session.authinfo.session_info, session.authinfo.credentials, false)) { - writefln("Provision failed!"); - } else if (!provision_dns(subobj, writefln, paths, - session.authinfo.session_info, session.authinfo.credentials)) { - writefln("DNS Provision failed!"); - } else { - writefln("Provision Complete!"); - } - } - } else { - f.display(); - } -} else { - redirect("/"); -} - -%> - - -<% page_footer(); %> -- cgit