RE: Impersonate Global.asax

From: Venkat Chilakala (venkatc@onlinemicrosoft.com)
Date: 06/06/02


From: venkatc@onlinemicrosoft.com (Venkat Chilakala (MS))
Date: Thu, 06 Jun 2002 20:52:57 GMT


There is no setting that does this automatically.
Global.asa has multiple events that are handled at different parts of a
life cycle of a request and all of them cannot exeucte in one security
context (and that too the context of the end user.) You can programatically
impersonate a specific user to execute this code but there is no setting .

If you want to impersonate a specific user please see the following KB
article.
http://support.microsoft.com/support/kb/articles/q306/1/58.asp

Thanks
Venkat Chilakala

This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.

--------------------
>>From: zvi.palgy@compaq.com (Tsvika Palgy)
>>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>>Subject: Impersonate Global.asax
>>Date: 5 Jun 2002 06:23:19 -0700
>>Organization: http://groups.google.com/
>>Lines: 12
>>Message-ID: <f3e77d06.0206050523.25602e94@posting.google.com>
>>NNTP-Posting-Host: 161.114.126.51
>>Content-Type: text/plain; charset=ISO-8859-1
>>Content-Transfer-Encoding: 8bit
>>X-Trace: posting.google.com 1023283400 4539 127.0.0.1 (5 Jun 2002
13:23:20 GMT)
>>X-Complaints-To: groups-abuse@google.com
>>NNTP-Posting-Date: 5 Jun 2002 13:23:20 GMT
>>Path:
cpmsftngxa07!tkmsftngp01!newsfeed00.sul.t-online.de!t-online.de!fr.usenet-ed
u.net!usenet-edu.net!teaser.fr!proxad.net!proxad.net!isdnet!sn-xit-02!supern
ews.com!postnews1.google.com!not-for-mail
>>Xref: cpmsftngxa07 microsoft.public.dotnet.framework.aspnet.security:1185
>>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>>
>>Hi
>>Created web service.
>>Is it possible to impersonate the excution of code in Global.asax ?
>>By default it's being executed by aspnet_wp.exe under ASPNET account
>>on the server.
>>I have there some code I wish will runAs a specific user that has
>>special access rights to specific resources on the server.
>>
>> The IMPERSONATE option of web.config does not affect global.asax .
>>
>> Thx in Advance
>> Zvi
>>



Relevant Pages

  • MOSS 2007 - Changing ListItem permissions in EventReciever
    ... Feature registrates FeatureEventReciever ... ItemAdded event changes access rights of item that was created to ... So I need to impersonate programmatically Admin user. ... bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, ...
    (microsoft.public.sharepoint.portalserver)
  • Re: System.Security.Principal.WindowsImpersonation
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >>' This sample can be run only on Windows XP. ... >>' proper execution presents a security risk. ... >>impersonate a user on this machine. ...
    (microsoft.public.dotnet.security)
  • Re: System.Diagnostic.Process and disfunctional process
    ... I think you will still need to impersonate a user that has rights to ... > connections. ... The process is a service that accepts incoming tcp ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: anonymous access + impersonation
    ... If i understood your problem exactly, my advice u to impersonate your com+ ... application(or you can modify IIS application protection level). ... ASPNET user and give directory listing rights on that hard drive... ... > apppool user & its password. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Problem with user impersonation and access rights
    ... rights to access the directory 'A' but have full rights on 'B' and SECOND ... If I use LogonUser and ImpersonateLoggedOnUser to impersonate the user ... but I cannot copy because SECOND doesn have permission to access B. ... of FIRST and SECOND and copying the files directly in one pass. ...
    (microsoft.public.win2000.security)