CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 LOGON_USER

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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.

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.