HighTechTalks DotNet Forums  

Re: an indirect ASP security problem

ASP.net Security microsoft.public.dotnet.framework.aspnet.security


Discuss Re: an indirect ASP security problem in the ASP.net Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Adam Lawson
 
Posts: n/a

Default Re: an indirect ASP security problem - 09-04-2003 , 06:41 PM






Hi Boban,

My initial question would be why do you have to "wake up" the windows
service? You could let that run on the machine with the proper crendentials
and then send it jobs through the website that it can pick up on
predetermined time intervals. The windows service could also run your dlls
and it can have an app.config file associated to it to contain data that is
needed like database connection strings.

hope this helps

Adam


"Boban Dragojlovic" <news (AT) _N_O_S_P_AM_dragojlovic (DOT) org> wrote

Quote:
I have an dot net website which calls a class (which is in a project that
is
referenced by the website project). I will call the class "WakeUp"

In other words, somepage.aspx.vb instantiates "wakeup" and calls a method
wakeup.now().

This method ... wakeup.now() ... uses the appropriate mechanism to start a
Windows Service.


When I try to run this on my web server, it fails because of lack of
permission.

If I add an <identity impersonate="true" ...> section to my web.config
file,
I can give it credentials so that the whole thing works.

The downside, of course, is that then the entire site runs under these
administrative credentials.


Is there a way that I can assign such administrative credentials (e.g.
impersonation) to only the "wakeup" class, instead of to the entire
website.
Since wakeup.dll is in the website\bin folder, it doesn't have its own
.config file.


Thanks,

b





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.