Results 1 to 3 of 3

Thread: Request.ServerVariables("REMOTE_USER")

  1. #1
    hummyz Guest

    Default Request.ServerVariables("REMOTE_USER")

    A PhoneBank ASP application was working perfectly yesterday until the Network Administrator changed security permissions. We no longer can get into the PhoneBank. Out first page, default.asp looks like this:<BR><BR>&#060;%@ LANGUAGE=VBScript %&#062;<BR>&#060;% Option Explicit %&#062;<BR>&#060;% Response.Expires = 0 %&#062;<BR>&#060;%<BR>if Request.ServerVariables("REMOTE_USER") = "" Then<BR>&#039if session("Logon") = "" Then<BR>&#039 Response.Status = "401 Unauthorized"<BR> Response.Redirect "failedlogin.htm"<BR> Response.end<BR>Else<BR> Session("Logon") = Request.ServerVariables("REMOTE_USER")<BR> Session("User") = Right(Session("Logon"),len(Session("Logon"))-InStr(Session("Logon"), "\"))<BR> Response.Cookies("UserName") = Session("User")<BR> Session("CurrSSN") = "-1"<BR> Response.Cookies("CurrSSN") = Session("CurrSSN")<BR> Response.Redirect "pbMain.asp"<BR> Response.end<BR>end if<BR><BR>%&#062;<BR><BR>It worked perfectly. What could have changed to cause Request.ServerVariables("REMOTE_USER") to be null.<BR><BR>Thanks

  2. #2
    Michael Swanson Guest

    Default RE: Request.ServerVariables(

    Allowing anonymous connections would cause your problem. A user needs to authenticate with NT in order for REMOTE_USER to be known.<BR><BR>Michael Swanson, MCSE, MCP+Internet<BR>Webmaster<BR>Donnelly Corporation<BR>

  3. #3
    Stephen Fisher Guest

    Default RE: Request.ServerVariables(

    Is Challenge response set on the server? If not you need to uncomment the response.status = "401 Unauthorized"<BR><BR>Also why are you using remote_user?<BR>I have always used Logon_user or Auth_user. I thought remote_user returned an IP.<BR><BR>Force the response.status and look for logon_user (assuming you are using IE as a browser)<BR>

Posting Permissions

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