svn commit: samba r9177 - in branches/SAMBA_4_0/swat: .
tridge at samba.org
tridge at samba.org
Sun Aug 7 07:00:29 GMT 2005
Author: tridge
Date: 2005-08-07 07:00:27 +0000 (Sun, 07 Aug 2005)
New Revision: 9177
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9177
Log:
setup a credentials object in authinfo on login
Modified:
branches/SAMBA_4_0/swat/login.esp
Changeset:
Modified: branches/SAMBA_4_0/swat/login.esp
===================================================================
--- branches/SAMBA_4_0/swat/login.esp 2005-08-07 07:00:00 UTC (rev 9176)
+++ branches/SAMBA_4_0/swat/login.esp 2005-08-07 07:00:27 UTC (rev 9177)
@@ -22,7 +22,6 @@
<%
if (request.REQUEST_METHOD == "POST") {
-
var authinfo = new Object();
authinfo.username = form.Username;
authinfo.password = form.Password;
@@ -33,14 +32,16 @@
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
More information about the samba-cvs
mailing list