Can't get logonuser

From: Dave Clark (nobody_at_yahoo.com)
Date: 08/13/03


Date: Wed, 13 Aug 2003 13:42:12 -0700


After looking again, I think the WindowsIdentity gets the
<domain>\<username> instead of what I say below.

>-----Original Message-----
>I'm pretty new at ASP.Net, but even when I had Anonymous
>off and Integrated Windows Authentication on,
>ServerVariables("LOGON_USER") is still empty. Here's
what
>I did to get the logged on user.
>
>Dim thisUser As System.Security.Principal.WindowsIdentity
>
>Dim UserLog As String
>
>UserLog = thisUser.GetCurrent.Name.ToString
>
>UserLog will contain the <machineName>/<logged on user>,
>such as ntsrvr1/ASPNET, if you're running in debug.
Parse
>out "ASPNET" for the logged on user.
>
>
>>-----Original Message-----
>>
>>
>>I would like to get user logon from server by
>> USERLog = Request.ServerVariables("LOGON_USER")
>>but it isn't see. i don't know what the problem
and
>how i can
>>solve in this. But i try to get other value can see
it.
>>
>>*** Sent via Developersdex http://www.developersdex.com
>***
>>Don't just participate in USENET...get rewarded for it!
>>.
>>
>.
>