Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Returning ServerVariables LOGON_USER

Status
Not open for further replies.

allanrxx

Programmer
Feb 25, 2004
12
US
Hi,

I have site running on a Windows 2000 server on my (NT4) internal domain(TESTDOMAIN). I need to be able to display certain information on the web pages based on who is accessing the site. I'm trying to use Request.ServerVariables("LOGON_USER") to show me who is logged in, but I'm having trouble with it...

If a user is already logged onto TESTDOMAIN, I don't want them to have to re-enter their login information when they try to access the site.

I have DNS set up for the site as When I try to access the site through this hostname, the LOGON_USER variable is blank...I guess since IIS sees the user hitting the site as the IUSR_machinename anonymous account. If I access the site via it returns the correct domain user account. My problem is that I need to set it up using a dns host name....and if I remove anonymous access from the site, the users will be prompted for a username/password every time they hit the site.

How can I determine the user's TESTDOMAIN account name transparently when they try to access
Thanks very much in advance for any information!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top