summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-07 07:00:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:28 -0500
commitc28816e74b9831981a730bb9a1ea6975da652925 (patch)
tree3ed9264cce1e5cbda6bc5f19bc946877d345e618
parent9f4444331a3c06c58c50ea10ab6ad84904c54339 (diff)
downloadsamba-c28816e74b9831981a730bb9a1ea6975da652925.tar.gz
samba-c28816e74b9831981a730bb9a1ea6975da652925.tar.bz2
samba-c28816e74b9831981a730bb9a1ea6975da652925.zip
r9177: setup a credentials object in authinfo on login
(This used to be commit c1ef18a590d2f7af4b64c1775376a05da80ac242)
-rw-r--r--swat/login.esp9
1 files changed, 5 insertions, 4 deletions
diff --git a/swat/login.esp b/swat/login.esp
index ae9a358243..4b40793923 100644
--- a/swat/login.esp
+++ b/swat/login.esp
@@ -22,7 +22,6 @@ f.display();
<%
if (request.REQUEST_METHOD == "POST") {
-
var authinfo = new Object();
authinfo.username = form.Username;
authinfo.password = form.Password;
@@ -33,14 +32,16 @@ f.display();
if (auth == undefined) {
write("<b>Invalid login - please try again<br /></b>\n");
} else if (auth.result) {
-
- /* for now just authenticate everyone */
session.AUTHENTICATED = true;
session.authinfo = new Object();
session.authinfo.username = auth.username;
session.authinfo.domain = auth.domain;
-
+ session.authinfo.credentials = credentials_init();
+ session.authinfo.credentials.set_username(authinfo.username);
+ session.authinfo.credentials.set_domain(authinfo.domain);
+ session.authinfo.credentials.set_password(authinfo.password);
+
/* if the user was asking for the login page, then now
redirect them to the main page. Otherwise just
redirect them to the current page, which will now