summaryrefslogtreecommitdiff
path: root/webapps/install/newuser.esp
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-01-03 20:07:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:36:07 -0500
commiteeddcf8cc8eb655d7c40f1fd5f7fd422529f4f98 (patch)
treec4f3a2eaddf2a0e33bb4c16574b88cdb41b554f8 /webapps/install/newuser.esp
parent2e7c59c24470766e37309c7a8bfa4c7b81c57614 (diff)
downloadsamba-eeddcf8cc8eb655d7c40f1fd5f7fd422529f4f98.tar.gz
samba-eeddcf8cc8eb655d7c40f1fd5f7fd422529f4f98.tar.bz2
samba-eeddcf8cc8eb655d7c40f1fd5f7fd422529f4f98.zip
r20516: svn gets royally screwed up when renaming or relocating files. attempt to correct.
(This used to be commit efffee706d62a4260b2d9782b19a9df1971dddb2)
Diffstat (limited to 'webapps/install/newuser.esp')
-rw-r--r--webapps/install/newuser.esp50
1 files changed, 0 insertions, 50 deletions
diff --git a/webapps/install/newuser.esp b/webapps/install/newuser.esp
deleted file mode 100644
index 1b341ff665..0000000000
--- a/webapps/install/newuser.esp
+++ /dev/null
@@ -1,50 +0,0 @@
-<% page_header("columns", "Add a user", "install");
-
- include("/scripting/forms.js");
- libinclude("base.js");
- libinclude("provision.js");
-%>
-
-<h1>Add a user</h1>
-
-<%
-var f = FormObj("newuser", 0, 2);
-var i;
-var rand = random_init();
-
-f.add("USERNAME", "User Name");
-f.add("UNIXNAME", "Unix Name");
-f.add("PASSWORD", "Password", "password");
-f.add("CONFIRM", "Confirm Password", "password");
-f.submit[0] = "Add";
-f.submit[1] = "Cancel";
-
-if (form['submit'] == "Cancel") {
- redirect("/");
-}
-
-
-if (form['submit'] == "Add" &&
- form.USERNAME != undefined) {
- var goodpass = (form.CONFIRM == form.PASSWORD);
-
- if (!goodpass) {
- write("<h3>Passwords don't match. Please try again.</h3>");
- f.display();
- } else {
- if (form.UNIXNAME == undefined) {
- form.UNIXNAME = form.USERNAME;
- }
- if (form.PASSWORD == undefined) {
- form.PASSWORD = rand.randpass();
- }
- newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln,
- session.authinfo.session_info, session.authinfo.credentials);
- }
-} else {
- f.display();
-}
-%>
-
-
-<% page_footer(); %>