diff options
author | Simo Sorce <idra@samba.org> | 2005-06-04 08:23:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:34 -0500 |
commit | b7bc13209f5133a117428f2ce58d995399fb684b (patch) | |
tree | e239cac6bf47a2b1fca782e1cbf8ca36e318be30 /swat | |
parent | f84d007c438dd43f2cd5a9b6ca583976c8e777fa (diff) | |
download | samba-b7bc13209f5133a117428f2ce58d995399fb684b.tar.gz samba-b7bc13209f5133a117428f2ce58d995399fb684b.tar.bz2 samba-b7bc13209f5133a117428f2ce58d995399fb684b.zip |
r7267: REMOTE_HOST is a better choice
(This used to be commit 41bae267e29614d300ec2505c927ab17ccbbe64f)
Diffstat (limited to 'swat')
-rw-r--r-- | swat/login.esp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/swat/login.esp b/swat/login.esp index f118eab1a2..10a0ba80d6 100644 --- a/swat/login.esp +++ b/swat/login.esp @@ -23,7 +23,13 @@ display_form(f); <% if (request.REQUEST_METHOD == "POST") { - auth = userAuth(form.Username, form.Password, form.Domain); + var authinfo = new Object(); + authinfo.username = form.Username; + authinfo.password = form.Password; + authinfo.domain = form.Domain; + authinfo.rhost = request['REMOTE_HOST']; + + auth = userAuth(authinfo); if (auth.result) { /* for now just authenticate everyone */ |