diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-19 11:06:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:43 -0500 |
commit | 325edaa66a5b3a8c907a3a521b4ceea26ea0210c (patch) | |
tree | db149f1887b56a6f2d2171700ea32bb0ceda9769 /swat/esptest | |
parent | 6c38e3324a3d2dc92c6456e2bfb3f3f62d98c77a (diff) | |
download | samba-325edaa66a5b3a8c907a3a521b4ceea26ea0210c.tar.gz samba-325edaa66a5b3a8c907a3a521b4ceea26ea0210c.tar.bz2 samba-325edaa66a5b3a8c907a3a521b4ceea26ea0210c.zip |
r8598: move provisioning to /install/ directory from /esptest/
(This used to be commit 318402ee4e8900e0d8ed1dce1e201f63ac4a908f)
Diffstat (limited to 'swat/esptest')
-rw-r--r-- | swat/esptest/newuser.esp | 41 | ||||
-rw-r--r-- | swat/esptest/provision.esp | 55 |
2 files changed, 0 insertions, 96 deletions
diff --git a/swat/esptest/newuser.esp b/swat/esptest/newuser.esp deleted file mode 100644 index 4c54a969e7..0000000000 --- a/swat/esptest/newuser.esp +++ /dev/null @@ -1,41 +0,0 @@ -<% page_header("columns", "Add a user", "/esptest/menu.js"); - - libinclude("base.js"); - libinclude("provision.js"); -%> - -<h1>Add a user</h1> - -<% -var f = FormObj("newuser", 3, 2); -var i; - -f.element[0].label = "User Name"; -f.element[0].name = "USERNAME"; -f.element[1].label = "Unix Name"; -f.element[1].name = "UNIXNAME"; -f.element[2].label = "Password"; -f.element[2].name = "PASSWORD"; -f.submit[0] = "Add"; -f.submit[1] = "Cancel"; - -if (form['submit'] == "Cancel") { - redirect("/"); -} - -if (form['submit'] == "Add" && - form.USERNAME != undefined) { - if (form.UNIXNAME == undefined) { - form.UNIXNAME = form.USERNAME; - } - if (form.PASSWORD == undefined) { - form.PASSWORD = randpass(); - } - newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln); -} else { - display_form(f); -} -%> - - -<% page_footer(); %> diff --git a/swat/esptest/provision.esp b/swat/esptest/provision.esp deleted file mode 100644 index edb65469df..0000000000 --- a/swat/esptest/provision.esp +++ /dev/null @@ -1,55 +0,0 @@ -<% page_header("columns", "Server provisioning", "/esptest/menu.js"); - - libinclude("base.js"); - libinclude("provision.js"); -%> - -<h1>Samba4 provisioning</h1> - -<% -var f = FormObj("Provisioning", 9, 2); -var i, subobj = provision_guess(); - -f.element[0].label = "Realm"; -f.element[0].name = "REALM"; -f.element[1].label = "Domain Name"; -f.element[1].name = "DOMAIN"; -f.element[2].label = "Host Name"; -f.element[2].name = "HOSTNAME"; -f.element[3].label = "Administrator Password"; -f.element[3].name = "ADMINPASS"; -f.element[4].label = "Domain SID"; -f.element[4].name = "DOMAINSID"; -f.element[5].label = "Host GUID"; -f.element[5].name = "HOSTGUID"; -f.element[6].label = "Base DN"; -f.element[6].name = "BASEDN"; -f.element[7].label = "Host IP"; -f.element[7].name = "HOSTIP"; -f.element[8].label = "Default Site"; -f.element[8].name = "DEFAULTSITE"; -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;i<f.element.length;i++) { - f.element[i].value = subobj[f.element[i].name]; -} -if (form['submit'] == "Provision") { - provision(subobj, writefln); -} else { - display_form(f); -} -%> - - -<% page_footer(); %> |