Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: RE: Grabbing Windows 2000 logon ID


Message #1 by "Lawrence McCann" <lmccann@c...> on Fri, 26 Jul 2002 21:00:00 +0100
dim iuser, iuserdomain, arrlogin, strUser



arrlogin =3D split(Request.ServerVariables("LOGON_USER"),"\")
strUser =3D arrLogin(1)
Response.Write ("You are Logged in as  ")
Response.Write strUser

Hope This Helps.

-----Original Message-----
From: srotondo@h... [mailto:srotondo@h...]
Sent: 26 July 2002 20:42
To: ASP Databases
Subject: [asp_databases] Grabbing Windows 2000 logon ID

I'm building an intranet and using integrated windows authentication. 
After a user logs on, I need to capture his Windows logon ID in my html,

asp or vb script code.  There must be a command out there that easily
retreives this information. 
Message #2 by "Leon Tunctson" <Leon.Tunctson@d...> on Fri, 26 Jul 2002 14:45:56 -0400
The following list provides various types of browser-related information.  
You can run the asp script and review your output, then determine how you c
an use these HTTP variables.

Begin script:

<%@ Language=3DVBScript %>


Browser=3D<%=3DRequest.ServerVariables("HTTP_USER_AGENT")%>  <BR>
Refer=3D<%=3DRequest.ServerVariables("HTTP_REFERER")%> <BR>
User=3D<%=3DRequest.ServerVariables("LOGON_USER")%> <BR>
Host=3D<%=3DRequest.ServerVariables("REMOTE_HOST")%> <BR>
ALL_Http=3D<%=3DRequest.ServerVariables("ALL_HTTP")%> <BR>

NEXT SECTION<BR>

CONTENT_LENGTH server variable =3D
<%=3D Request.ServerVariables("CONTENT_LENGTH") %><BR>
CONTENT_TYPE server variable =3D
<%=3D Request.ServerVariables("CONTENT_TYPE") %><BR>
QUERY_STRING server variable =3D
<%Request.ServerVariables("QUERY_STRING") %><BR>
SERVER_SOFTWARE server variable =3D
<%=3D Request.ServerVariables("SERVER_SOFTWARE") %><BR>


SERVER Name=3D<%=3DRequest.ServerVariables("Server_NAME") %>


End script

>>> srotondo@h... 07/26/02 07:42PM >>>
I'm building an intranet and using integrated windows authentication. 
After a user logs on, I need to capture his Windows logon ID in my html,
asp or vb script code.  There must be a command out there that easily
retreives this information. 
to unsubscribe send a blank email to leave-asp_databases-1065906U@p...
com.


************************************************************
Scanned by net.work.Maryland Antivirus Service...
the Backbone of eMaryland, the Digital State.
************************************************************

Message #3 by srotondo@h... on Fri, 26 Jul 2002 19:42:11
I'm building an intranet and using integrated windows authentication.  
After a user logs on, I need to capture his Windows logon ID in my html, 
asp or vb script code.  There must be a command out there that easily 
retreives this information.  

  Return to Index