.NETGURU
Information on user
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngsec' list.


Carlos Magalhaes
-- Moved from [aspngfreeforall] to [aspngsec] by Yannick Smits <Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Information on user</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>How do I get the info on the user like =
username(domain\username) and ip addy time hit the site and then add =
that info to the body of a e-mail in bullet form?</FONT></P>

<P><FONT SIZE=3D2>Thank you .</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Carlos</FONT>
<BR><FONT SIZE=3D2>=A0</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

Reply to this message...
 
    
TIM ELLISON
System.Web.HttpContext.Current.User.Identity.Name;

Will only work if you authentication set for NTML auth. And don't allow
anonymous access to the site.

Regards,

Tim Ellison
Senior Web Applications Developer,
Long and Foster Real Estate
703-359-1884
Click here to reveal e-mail address

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 18, 2002 5:27 AM
To: aspngsec
Subject: [aspngsec] Information on user

-- Moved from [aspngfreeforall] to [aspngsec] by Yannick Smits
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Information on user</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>How do I get the info on the user like =
username(domain\username) and ip addy time hit the site and then add =
that info to the body of a e-mail in bullet form?</FONT></P>

<P><FONT SIZE=3D2>Thank you .</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Carlos</FONT>
<BR><FONT SIZE=3D2>=A0</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Daniel Kent
Context.User.Identity.Name will actually work for any type of authentication
- Windows, Passport, Forms or even our own custom scheme (providing we play
nicely and attach an IIdentity object to the Identity property of the
IPrincipal object in Context.User)

You can get the IP address ued to make the request with
Request.UserHostAddress.

Dan.

(Currently working on Professional ASP.NET Security for Wrox - available in
August)

-----Original Message-----
From: TIM ELLISON [mailto:Click here to reveal e-mail address]
Sent: 20 June 2002 11:59
To: aspngsec
Subject: [aspngsec] RE: Information on user

System.Web.HttpContext.Current.User.Identity.Name;

Will only work if you authentication set for NTML auth. And don't allow
anonymous access to the site.

Regards,

Tim Ellison
Senior Web Applications Developer,
Long and Foster Real Estate
703-359-1884
Click here to reveal e-mail address

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 18, 2002 5:27 AM
To: aspngsec
Subject: [aspngsec] Information on user

-- Moved from [aspngfreeforall] to [aspngsec] by Yannick Smits
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Information on user</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>How do I get the info on the user like =
username(domain\username) and ip addy time hit the site and then add =
that info to the body of a e-mail in bullet form?</FONT></P>

<P><FONT SIZE=3D2>Thank you .</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Carlos</FONT>
<BR><FONT SIZE=3D2>=A0</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Daniel Kent
Oops.. Misunderstood the last post slightly. My point still stands, but Tim
is right that we need to disable anonymous access if we want to extract a
domain\username - leaving it active will lead to users all being identified
as something like IUSR_[server name]

Dan.
(Currently working on Professional ASP.NET Security for Wrox - available in
August)

-----Original Message-----
From: Daniel Kent [mailto:Click here to reveal e-mail address]
Sent: 20 June 2002 13:10
To: aspngsec
Subject: [aspngsec] RE: Information on user

Context.User.Identity.Name will actually work for any type of authentication
- Windows, Passport, Forms or even our own custom scheme (providing we play
nicely and attach an IIdentity object to the Identity property of the
IPrincipal object in Context.User)

You can get the IP address ued to make the request with
Request.UserHostAddress.

Dan.

(Currently working on Professional ASP.NET Security for Wrox - available in
August)

-----Original Message-----
From: TIM ELLISON [mailto:Click here to reveal e-mail address]
Sent: 20 June 2002 11:59
To: aspngsec
Subject: [aspngsec] RE: Information on user

System.Web.HttpContext.Current.User.Identity.Name;

Will only work if you authentication set for NTML auth. And don't allow
anonymous access to the site.

Regards,

Tim Ellison
Senior Web Applications Developer,
Long and Foster Real Estate
703-359-1884
Click here to reveal e-mail address

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 18, 2002 5:27 AM
To: aspngsec
Subject: [aspngsec] Information on user

-- Moved from [aspngfreeforall] to [aspngsec] by Yannick Smits
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Information on user</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>How do I get the info on the user like =
username(domain\username) and ip addy time hit the site and then add =
that info to the body of a e-mail in bullet form?</FONT></P>

<P><FONT SIZE=3D2>Thank you .</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Carlos</FONT>
<BR><FONT SIZE=3D2>=A0</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 
System.Runtime.Remoting.Contexts.Context
System.Security.Principal.IIdentity
System.Security.Principal.IPrincipal
System.Web.HttpContext




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification