468,525 Members | 2,250 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,525 developers. It's quick & easy.

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

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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
6 2116
On Wed, 15 Dec 2004 09:35:04 -0800, zoltix wrote:
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
--
Tom Porterfield
Nov 16 '05 #2


Thank you very. Just for information for a dot net application ?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Note that asp.net NEVER runs as IU_IISSERVER unless you are impersonating
the anonymous user.

Willy.

"zoltix" <zo****@lli.be> wrote in message
news:eb**************@TK2MSFTNGP12.phx.gbl...
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4


Thank you I work

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
Set impersonation on.

Add

<identity impersonate="true" username="user" password="" />

in web.config file.
with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #6
No this will run the process under impersonation, not only a few lines of
code.

Willy.

"Ravichandran J.V." <jv************@yahoo.com> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
Set impersonation on.

Add

<identity impersonate="true" username="user" password="" />

in web.config file.
with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by sushi | last post: by
7 posts views Thread by John | last post: by
8 posts views Thread by simonlpwaters | last post: by
3 posts views Thread by R.A.M. | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.