Solved

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

Posted on 2003-11-30
10
1,908 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

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
 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

828 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