RE: Obtain User Login Name?
From: Felix Wu [MS] (felixwu@online.microsoft.com)
Date: 09/20/02
- Next message: Willy Denoyette [MVP]: "Re: NTFS + Impersonation + Asp.Net"
- Previous message: David Fanning: "Re: NTFS + Impersonation + Asp.Net"
- In reply to: crjunk: "Obtain User Login Name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: felixwu@online.microsoft.com (Felix Wu [MS]) Date: Fri, 20 Sep 2002 11:13:29 GMT
Hi Crjunk,
In general, we can use Context.User property to retrieve this user's
information. However, this property has close relations with the
Authentication mode of your web application. You can take a look at the
following two articles. They provides a very good discussion about security
in web applications:
ASP.NET Security: An Introductory Guide to Building and Deploying More
Secure Sites with ASP.NET and IIS
http://msdn.microsoft.com/msdnmag/issues/02/04/ASPSec/ASPSec.asp
ASP.NET Security: An Introductory Guide to Building and Deploying More
Secure Sites with ASP.NET and IIS, Part 2
http://msdn.microsoft.com/msdnmag/issues/02/05/ASPSec2/ASPSec2.asp
Hope this helps.
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: crjunk@earthlink.net (crjunk)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>Subject: Obtain User Login Name?
>Date: 17 Sep 2002 14:11:29 -0700
>Organization: http://groups.google.com/
>Lines: 13
>Message-ID: <e45e90aa.0209171311.6f1e5787@posting.google.com>
>NNTP-Posting-Host: 205.144.229.124
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1032297089 23708 127.0.0.1 (17 Sep 2002
21:11:29 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: 17 Sep 2002 21:11:29 GMT
>Path:
cpmsftngxa08!cpmsftngxa07!tkmsftngp01!newsfeed00.sul.t-online.de!t-online.de
!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-xit-
04!sn-xit-08!supernews.com!postnews1.google.com!not-for-mail
>Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet.security:2284
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>I'm a newbie when it comes to Visual Studio .Net, so please forgive me
>if I'm asking something stupid or in the wrong newsgroup.
>
>I am creating an intranet site that will allow users to enter in
>records. I'm using ASP.NET and VB.NET for my code behind. I would
>like to somehow obtain the user's Windows login name and/or the user's
>Novell login name.
>
>Can anyone tell me a simple way that I can obtain either one of these
>user names? I've tried searching news groups to find an answer, but I
>haven't had any luck with the examples that I have come across.
>
>Any help is greatly appreciated!
>
- Next message: Willy Denoyette [MVP]: "Re: NTFS + Impersonation + Asp.Net"
- Previous message: David Fanning: "Re: NTFS + Impersonation + Asp.Net"
- In reply to: crjunk: "Obtain User Login Name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|