Re: HttpContext.Current.User.Identity.Name & ServerVariable("LOGON_USE

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 10/26/05

  • Next message: [MSFT]: "RE: Upload files"
    Date: Wed, 26 Oct 2005 07:37:22 -0700
    
    

    Hello Barry,

    who is logged on - and what does it return?

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > I have an Intranet application that uses the
    > System.Web.HttpContext.Current.User.Identity.Name to grab the
    > DOMAIN\USERNAME of the current user.
    >
    > SCENARIO:
    > The user logs into their machine with their id/password and
    > authenicates
    > against the domain. Fine. That works. However, when this user surfs
    > to my
    > Intranet application the Current.User.Identity.Name returns a
    > different
    > USERNAME than what was logged into the machine with.
    > While troubleshooting this issue, I found that when using the
    > SERVERVARIABLE("LOGON_USER") to get the DOMAIN\USERNAME, the correct
    > USERNAME is returned.
    >
    > Does anybody have an idea as to why the two would produce different
    > results?
    >
    > Thanks in advance. Barry
    >


  • Next message: [MSFT]: "RE: Upload files"

    Relevant Pages

    • RE: Authentication 3 times and then HTTP error 401.1
      ... is running the IIS. ... The username should be "network service" in your ... scenario. ...
      (microsoft.public.windows.server.sbs)
    • Re: Normalize table
      ... john wrote: ... (Username, ApplicationName) ... DBEngine.Execute strSQL, dbFailOnError ... and you can grab the Application Name by getting the ...
      (comp.databases.ms-access)
    • Re: I dont know where to start with this one.
      ... > I've got a mail alias file, space delimited and sorted on the second ... The second thing I need to do is grab all ... is just one point I'm stuck on, how to grab the username portion of ... I'm able to get the username of ...
      (perl.beginners)
    • Re: I dont know where to start with this one.
      ... is just one point I'm stuck on, how to grab the username portion of ... I'm able to get the username of ... What I've written below seems to grab a "slice" or something and isn't ... These are your email aliases: ...
      (perl.beginners)
    • Re: System.Environment.UserName
      ... Dominick Baier - DevelopMentor ... UserName instead of prompting for a username and password and ... There isn't a high need for water tight security, ...
      (microsoft.public.dotnet.security)