ekendricks
Posts: 34
|
| Posted: 09/11/2007, 6:20 AM |
|
Using Win XP - Win 2003 SQL 2005, ASP, IIS 6
Working on an Intranet running Win 2003 and approx 600 users using Win XP. I'm trying to create an integrated login, to capture the Windows Username and use that Username in the Login page (script) to verify against a database, and then set session variables from there.
Thus far I have been able to do just that, and it works perfectly on the test machine, as long as the address is http://localhost/Login.asp. I can place the form on the production server, and it works with the address http://localhost/login.asp. The problem is, if a user on the Intranet, or if I on the production machine use the site address, ie: http://MainSite/Login.asp or IP Address, 56.56.56.565/Login.asp, the LOGON_USER is NOT populated and the login correctly redirects the user to the login form.
I have tried various combinations of checking and unchecking "Anonymous Access" and "Integrated Windows Authentication" on the IIS Directory Security / Auhentication Methods.
Below is a partial script that I'm using: The re-directs and such were removed to shorten the posting. Again, the script works with "localhost" but not when accessed by either IP or Web Address
-----------------------------------------------------------
<%@ Language=VBScript %>
<%
Option Explicit
Response.Buffer = True
Response.Expires = -1
Dim Logon_User
LOGON_USER = Request.ServerVariables("LOGON_USER")
If Request.ServerVariables("LOGON_USER") = "" Then
Response.Status = "401 Unauthorized"
Response.AddHeader "WWW-Authenticate","NTLM"
Response.End
End If
%>
-------------------------------------
Thanks for any suggestions
Ernest
|
 |
 |
Oper
Posts: 1195
|
| Posted: 09/12/2007, 1:26 PM |
|
IIS -> anonymous login off.
Request.Servervariables ("AUTH_USER")
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
ekendricks
Posts: 34
|
| Posted: 09/23/2007, 11:38 AM |
|
Thanks for the reply. The problem was, the website has to be registered in the DNS server.
|
 |
 |
|