Remote_User visible in ASP but not ASPX

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Matt Guest

  2. Similar Questions and Discussions

    1. How to get first & Last visible Row in VB?
      In C#,I know the way to get: void EnsureRowVisible(DataGrid grd, int Row) { int FirstVisibleRow =...
    2. passing a token from pageA.aspx to pageB.aspx
      I am trying to get pageA.aspx gridView to pass a key (say deptID) to pageB.aspx which will use the value passed as a filter in it's own griView...
    3. Accessing a aspx page using HttpWebRequest from another aspx page on the same webapp
      Did you have any luck on this as I have the same problem. Maybe you can help me out of you solved your problem.
    4. IIS 6 and MX REMOTE_USER and AUTH_USER Variables
      REMOTE_USER and AUTH_USER Variables Not Present on MX Default Pages We have used these CGI variables exclusively for authentication and...
    5. including one aspx file in another aspx file
      Is there a way is asp.net that I can include another aspx file ?. We can do this in asp by using include statement.
  3. #2

    Default Re: Remote_User visible in ASP but not ASPX

    Turn off Anonymous authentication from IIS and then make the following
    change in web.config
    <authorization>
    <deny users="?" />
    </authorization>

    --
    Naveen K Kohli
    [url]http://www.netomatix.com[/url]
    "Matt" <mcqueenenospam@hotmail.com> wrote in message
    news:ubLg4LLQDHA.2768@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 [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Naveen K Kohli Guest

  4. #3

    Default Re: Remote_User visible in ASP but not ASPX

    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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Matt Guest

  5. #4

    Default Re: Remote_User visible in ASP but not ASPX

    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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!

    Matt Guest

  6. #5

    Default Re: Remote_User visible in ASP but not ASPX

    Could this be an issue with the version of the framework? The problem
    server is version 1.0.



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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139