Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-30
10
Medium Priority
?
1,914 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 250 total points
ID: 9855851
0
 

Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

824 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