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

From: Patrick.O.Ige (naijacoder_at_hotmail.com)
Date: 10/31/05


Date: Mon, 31 Oct 2005 14:55:10 +1100

Have you tried using User.Identity.Name?
Are you in a Active Directory environment?
Patrick

"Barry" <Barry@discussions.microsoft.com> wrote in message
news:16090F28-DD23-42A2-894A-404AB83B0C5F@microsoft.com...
> The user (Non-Admin) logs onto their machine with, as an example, ID
TT1234.
> However, the Current.User.Identity.Name returns TP1234.
>
> If I use the ServerVariable("LOGON_USER") the correct ID, TT1234, is
> returned.
>
> This only happens for this one particular user.
>
>
>
> "Dominick Baier [DevelopMentor]" wrote:
>
> > 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
> > >
> >
> >
> >