473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Remote_User visible in ASP but not ASPX

I'm trying to convert a site to ASP.Net and I noticed that when I try to
use the Request.ServerVariable("REMOTE_USER") value with the ASPX page I
get a generic value. If I use the same code on an ASP page and place it
in the .Net website directory I get my NT login (which is what I want).

I saw one post that said to use <identity impersonate="true"/> in my
web.config but this had no effect for me. My guess is that it's
something in the web.config but I don't know what.

I have verified that my old ASP site and the new ASP.Net site are
configured identically in IIS (basic & integrated).

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
4 4951
Turn off Anonymous authentication from IIS and then make the following
change in web.config
<authorization>
<deny users="?" />
</authorization>

--
Naveen K Kohli
http://www.netomatix.com
"Matt" <mc************@hotmail.com> wrote in message
news:ub**************@tk2msftngp13.phx.gbl...
I'm trying to convert a site to ASP.Net and I noticed that when I try to
use the Request.ServerVariable("REMOTE_USER") value with the ASPX page I
get a generic value. If I use the same code on an ASP page and place it
in the .Net website directory I get my NT login (which is what I want).

I saw one post that said to use <identity impersonate="true"/> in my
web.config but this had no effect for me. My guess is that it's
something in the web.config but I don't know what.

I have verified that my old ASP site and the new ASP.Net site are
configured identically in IIS (basic & integrated).

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
I tried that and still no luck.

Something is very different about the way the authorization information
is gathered when using ASPX vs ASP.

We use a password authorization program for our local intranet to
"log-in". Our ASP sites can get the ID you use to log in with using the
REMOTE_USER or AUTH_USER. But with ASPX I get a generic DOMAIN/USERID
value. I just noticed that the ASP pages have this same generic
DOMAIN/USERID in the LOGON_USER variable.

So for some reason, ASPX uses the LOGON_USER value and places that in
the AUTH_USER and REMOTE_USER. This is different than what ASP does.

I still hope this is just a configuration issue. I will gladly try any
other suggestions.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
Some more information ...

When testing locally on my XP machine everything works. When testing on
the target 2000 remote server it fails.

I created a simple page to dump some key values. I noticed the following
for my user.identity.authenicationtype :

local --> negotiate
remote -> basic

IIS is configured basic for both sites in IIS so I'm not sure what I did
to get it to be "negotiate" on my local machine. I'm not even sure that
is the problem but I wanted to include it in case it helps.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #4
Could this be an issue with the version of the framework? The problem
server is version 1.0.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Cas | last post by:
Hi, I have an intranet application running on windows 2000 server with IIS 5.0, but there is no domain. The users use workstation windows 2000 and log on locally. I need the logon of the users...
0
by: puregin | last post by:
hi i use nt user authentication on our iis 5.0 webserver. user get a login popup for username/password when they connect to the website. i also use session handling which works fine. the session...
6
by: Nick Stansbury | last post by:
Hi, I have a loop running on Page_PreRender that sets a number of controls to invisible based on a set of criteria. Before I do this however, I set all of the drop down lists to be visible with...
5
by: Raj | last post by:
Hi, I have a ASP.NET project which is working fine and I need to align controls in a .aspx page. The webform( .aspx page) has variety of controls (labels, textboxes, radio buttons etc) and when...
6
by: SimonZ | last post by:
How can you call function from aspx page? For example: button on aspx page: <asp:button Visible="<% =funcVisible()%>" id="btnNew" Runat="server"></asp:button> code behind function:
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
8
by: gnewsgroup | last post by:
I know that we can re-use/share code by placing the code in App_Code. But, is it possible for MyPage.aspx.cs to call a method defined in AnotherPage.aspx.cs? Suppose, in AnotherPage.aspx.cs,...
8
by: Dan | last post by:
Hi, i experimented with postback and viewstate. With this code, there are 2 dropdownlists created, one visible and with AutoPostBack true, the other not visible and no AutoPostBack, and one...
4
Claus Mygind
by: Claus Mygind | last post by:
How can I capture the REMOTE_USER via javaScript? I want to store the value as part of the record key.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.