Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Can't get logonuser

Reply
Thread Tools

Can't get logonuser

 
 
Little Little
Guest
Posts: n/a
 
      08-06-2003


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!
 
Reply With Quote
 
 
 
 
Naveen K Kohli
Guest
Posts: n/a
 
      08-06-2003
For this to work.. you need to use Windows Authentication or Basic
authentication and turn off anonymous acess in IIS.

--
Naveen K Kohli
http://www.netomatix.com
"Little Little" <> wrote in message
news:...
>
>
> 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!



 
Reply With Quote
 
 
 
 
Dave Clark
Guest
Posts: n/a
 
      08-13-2003
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!
>>.
>>

>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.net & Win32 API (LogonUser) question... Rich ASP .Net 1 11-02-2004 03:52 AM
LogonUser failed error Nimi ASP .Net 1 10-14-2004 01:40 PM
impersonating and LogonUser Jason ASP .Net 7 01-05-2004 03:35 PM
Re: Impersonation in ASPNET and LogonUser Mary Chipman ASP .Net 0 09-03-2003 03:48 PM
win32security.LogonUser Darrell Python 1 07-08-2003 02:25 PM



Advertisments
 



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