Solved

Request.servervariables("LOGON_USER") gives an empty string on client machines with Windows XP

Posted on 2003-11-30
10
1,905 Views
Last Modified: 2012-06-21
IIS 5.0 is installed on windows 2000 web server. The client machines are using windows XP. Request.servervariables("LOGON_USER") gives an empty string on client machines. but this is working on the server. "Anonymous Access" is unchecked. "Integrated Windows Authentication" is checked in IIS.

Any idea?
0
Comment
Question by:ManSree
  • 5
  • 5
10 Comments
 
LVL 4

Expert Comment

by:c_swanky
ID: 9848387
I've only seen this if  "Anonymous Access" is CHECKED.

Just to make sure, go into IIS and navigate all the way down to the FILE LEVEL, open the properties for the .asp file (NOT the folder), check the File Security and make sure the Anonymous Access" is unchecked there.

Do you have multiple severs?


0
 

Author Comment

by:ManSree
ID: 9848416

"Anonymous access" is unchecked for the asp file.

We do have multiple servers. But we have only one web server.
0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9848556
Have you tried creating a simple .asp like this?

<%
Response.Write("AUTH_USER" & Request.ServerVariables("AUTH_USER") & "<br>")
Response.Write("LOGON USER" & Request.ServerVariables("LOGON_USER") & "<br>")
Response.Write("REMOTE_USER" & Request.ServerVariables("REMOTE_USER") & "<br>")
%>

When calling this page are you getting any errors on the CLIENT'S machine?

Also you can check the following setting on the CLIENT’S browser:
Tools > Internet Options
Click the “Security” Tab
Click the “Custom Level” button
Scroll to the very end (look for “User Authentication”)
What’s is this set to?
0
 

Author Comment

by:ManSree
ID: 9848577

I found out the problem. The server was not joined to the domain properly. I had the server joined the domain and do some small tricks, which solved the issue.

Thanks a lot for all your help!!!
0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9848592
Cool!

Just for future ref, were you getting an error on the client's machine when attempting to access the page? if so what was it?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:ManSree
ID: 9848606
Since "Anonymous access" was unchecked, the user is prompted for User id & password.

The client's browser setting : Automatic logon only on Intranet zone is selected.
0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9855246
ManSree - Please don't forget to close this question now that you have figured out the problem.
0
 

Author Comment

by:ManSree
ID: 9855813
How do I close this question?. I'm new to this site.
0
 
LVL 4

Accepted Solution

by:
c_swanky earned 125 total points
ID: 9855851
0
 

Author Comment

by:ManSree
ID: 9855907
Pls close this question.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now