WindowsIdentity & HttpContext.Current.User ?
From: nono (azaz@azaz.com)
Date: 11/04/02
- Next message: Sebastien Pouliot: "CRL checking question...again"
- Previous message: Kevin Yu: "Re: How to use WindowsPrincipal properly??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "nono" <azaz@azaz.com> Date: Mon, 4 Nov 2002 09:03:00 -0800
Hello,
I create a ASP.NET web application with these settings :
Allow anonymous access (IIS) --> DISABLE
<authentication mode="Windows" />
<identity impersonate="false"/>
<processModel enable="true" userName="machine"
password="AutoGenerate"/>
So, i read that "HttpContext .Current .User .Identity" was
an instance of WindowsIdentity. (in my case of windows
authentification)
My problem is that the 2 values are different :
WindowsIdentity.GetCurrent().Name = "DEV\ASPNET"
HttpContext .Current .User .Identity.Name
= "DEV\administrator"
Why ?
What is the difference
between "Thread.CurrentPrincipal.Identity.Name"
and "WindowsIdentity.GetCurrent().Name" ?
In my application, i would like to upload a file on the
server, and i have always the same error message :
System.UnauthorizedAccessException: Access to the
path "c:\Temp" is denied.
DEV\administrator has Read/Write credentials on this
directory, ASPNET too.
Thanks,
- Next message: Sebastien Pouliot: "CRL checking question...again"
- Previous message: Kevin Yu: "Re: How to use WindowsPrincipal properly??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|