Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem in retrieving Windows NT user (Remote_user) from ASP

Posted on 2001-06-06
11
Medium Priority
?
1,093 Views
Last Modified: 2008-02-01
I'm trying to get the Servervariables("Remote_user") from ASP and the authentication on the IIS is Anonymous and Basic. However, I still can't get the Windows NT user logged onto the web server. It returns an empty string. Can anyone throw some light on this.
0
Comment
Question by:yvsubash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 20

Expert Comment

by:jitganguly
ID: 6161127
You have to set windows NT challenge/Response option checked to get values in Servervariables("Remote_user") or Servervariables("Logon_user")

Try this code for all server vars
<%@ LANGUAGE="VBSCRIPT" %>

<html>
<head>
     <title>Untitled</title>
</head>

<body>
<TABLE BORDER="1">
<TR><TD><B>Server Variable</B></TD><TD><B>Value</B></TD></TR>
<% For Each strKey In Request.ServerVariables %>
<TR><TD> <%= strKey %> </TD><TD>  <%= Request.ServerVariables(strKey) %> </TD></TR>
<% Next %>
</TABLE>
</body>
</html>
0
 

Author Comment

by:yvsubash
ID: 6161173
jitganguly,

Thanks for the response but I already tried that option and getting the following error. Any other Ideas

HTTP Error 401
401.2 Unauthorized: Logon Failed due to server configuration

This error indicates that the credentials passed to the server do not match the credentials required to log on to the server. This is usually caused by not sending the proper WWW-Authenticate header field.

Please contact the Web server's administrator to verify that you have permission to access to requested resource.
0
 

Author Comment

by:yvsubash
ID: 6161178
jitganguly,

Thanks for the response but I already tried that option and getting the following error. Any other Ideas

HTTP Error 401
401.2 Unauthorized: Logon Failed due to server configuration

This error indicates that the credentials passed to the server do not match the credentials required to log on to the server. This is usually caused by not sending the proper WWW-Authenticate header field.

Please contact the Web server's administrator to verify that you have permission to access to requested resource.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Expert Comment

by:daniel_c
ID: 6161200
Have you checked the user permissions on your web folder?
It should be "read" permission at least for "everyone".
0
 
LVL 20

Accepted Solution

by:
jitganguly earned 450 total points
ID: 6161235
When you check WIndows NT challenge/Response ONLY, then it will validate the pages according to NT userid/password and everytime you go to a page it will prompt you for userid/password. Make sure you have only checked NT challenge/Response and others such as basic authertication etc. are all uncheked.
Now does this user have access to view those pages. I mean when you get the userid/password box the user you specify should have permission to see thso epages. Check that from MMC/properties/Home director or virtual directory /permissions. You shoud see 3 radio buttons and check script radio button at least
0
 

Author Comment

by:yvsubash
ID: 6161293
The Web folder has full Control to everyone.

Also the Windows NT Challenge/Response alone is checked.
The user has permissions to see those pages and SCript radio button is checked.

Could there be a problem with ISAPI filter configuration or something like that?
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6161429
Hmmm.
"Could there be a problem with ISAPI filter configuration or something like that?"
I don't think so. But you can disable for the time being and check.

Now does this user have access to login to this server. WHy don't you add a user in the server machine and test it first
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6161462
You are getting
"Unauthorized: Logon Failed due to server configuration" and you said
"Web folder has full Control to everyone"

I have a feeling the user you are entering does not have any rights to the server domain/machine. Check that
0
 

Author Comment

by:yvsubash
ID: 6165573
I figured out that there is a problem when dealing with proxy servers. I have a work around for this by creating an alias for the web site there by passing the User ID to everywhere.
0
 

Author Comment

by:yvsubash
ID: 6167954
I found the answer to this question by self and nobody were able to give the right solution even though I appreciate their efforts.
0
 

Expert Comment

by:G2MD
ID: 6834577
Please, tell me what you did, because I have a problem like this.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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