newbie question

  • Thread starter Thread starter Auddog
  • Start date Start date
A

Auddog

I'm currently trying to setup a helpdesk web app. I'm new to asp.net and
have a quick question. I currently have in place an IIS 5 running the 1.1
framework. The intranet side uses integrated windows authenication. Can
someone explain or direct me to a link that will explain how to get user
information from this type of login. Thanks

A
 
It all depends on what sort of information you want to get. Some of it is
readily available, such as the user's Logon name
(Request.ServerVariables("LOGON_USER")) and browser IP address
(Request.ServerVariables("REMOTE_ADDR")). For other information, you would
need to interact with Active Directory.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Mainly what I'm trying to get is the logon_user. I'll see if I can get this
to work. Is there a list of available (Request.ServerVariables(xx))
somewhere?

Thanks for the help

A
 
You could always use the .NET Framework!

In VB.NET:
Dim wi As System.Security.Principal.WindowsIdentity

wi = System.Security.Principal.WindowsIdentity.GetCurrent()

from this you can get the full user name with wi.Name

System.Security is a wonderful namespace!

Dan
 
Back
Top