Asp.net impersonate
From: Frederik Vermeersch via .NET 247 (anonymous_at_dotnet247.com)
Date: 08/28/04
- Next message: christy albertus via .NET 247: "BiTcH_dEgA_dEgA"
- Previous message: Peter Afonin: "Re: MD5 conversion problem"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Asp.net impersonate"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Asp.net impersonate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 28 Aug 2004 05:32:46 -0700
Hi,
My global.asax contains:
<authentication mode="Windows" />
<identity impersonate="true"/>
in my aspx page Environment.UserName returns the correct impersonated username,
but Environment.GetEnvironmentVariable("USERPROFILE") returns the userprofile of the ASPNET user, being: C:\Documents and Settings\COMPUTERNAME\ASPNET
(Strange behaviour, but I asume that this is by design.)
Is there no way to return the userprofile for the impersonated account?
Thanks,
Frederik
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>EUpSiezJAUCDSil1IuWbOg==</Id>
- Next message: christy albertus via .NET 247: "BiTcH_dEgA_dEgA"
- Previous message: Peter Afonin: "Re: MD5 conversion problem"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Asp.net impersonate"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Asp.net impersonate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]