How to execute some “lines code” for other user than currently logged user?

  • Thread starter Thread starter zoltix
  • Start date Start date
Z

zoltix

Hi,
I would like to access to execute specific commands but the privileges
are not enough from an aspx Page. Because this service run as
IU_IISSERVER, therefore aspx hasn’t access to these resources and it is
normal.. But sometimes, I need these privileges for special commands.
How to execute some “lines code” for other user than currently logged
user?

Thank you for your help


Bye
 
Hi,
I would like to access to execute specific commands but the privileges
are not enough from an aspx Page. Because this service run as
IU_IISSERVER, therefore aspx hasn’t access to these resources and it is
normal.. But sometimes, I need these privileges for special commands.
How to execute some “lines code” for other user than currently logged
user?

See the following KB article:

How to implement impersonation in an ASP.NET application
http://support.microsoft.com/?id=306158
 
Note that asp.net NEVER runs as IU_IISSERVER unless you are impersonating
the anonymous user.

Willy.
 
No this will run the process under impersonation, not only a few lines of
code.

Willy.
 
Back
Top