Re: I'd like to write a WebService update system for our product..

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Christoph Schittko [MVP] (ChristophSchittkoMVP_at_discussions.microsoft.com)
Date: 02/18/05


Date: Thu, 17 Feb 2005 22:23:08 -0800

OK ... now I am with you.

I'd have my doubts that the ASP.NET account does have sufficient privileges
to access the registry or to launch installations. You can obtain sufficient
privileges within your web service if you change the identity under which
your web service is running by configuring the account in the web.config file
[0] or if you can run the web service in its own worker process under high
isolation and configure the identity for the worker process.

Given that you're exposing a web service with administrative access
privileges, I'd be extra careful and add WSE to guarantee the identity of the
caller via a Kerberos token or a X.509 certificate.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

[0] http://weblogs.asp.net/cschittko/archive/2004/03/05/85035.aspx

"WTH" wrote:

> Christoph Schittko [MVP] wrote:
> > I'm not sure that I fully understand what you're trying to do, you're trying
> > to update a web service, corrent? Have you checked if the updater application
> > block [0] does what you want?
>
> Sorry I wasnt' clear enough. We have windows services and components that are installed across a variety of machines. Each machine
> that has our components on it, is running IIS for web administration of our compoents. We have scenarios where we have 200 remote
> machines (each with IIS on it) that may need to run a particular MSI install file. This install file isn't to update the web
> service, but to update the windows services and components of our core product.
>
> As a solution to going out to 200 machines (which are usually not co-located) and running the install process, or using a generic IT
> solution (because we want to automate this in the future with security), I would like to simply have a web service running on each
> of those 200 machines that a central location could execute a SOAP request on such as "InstallUpdate( URL to File )."
>
> I've got that part finished; however, I'm worried that because of the restricted permissions on the ASPNET user on those 200
> machines, that I won't be able to run an installation program because it won't be able to do things like remove/add files in various
> places, update the registry, register/unregister components, stop/start windows services, et cetera.
>
> I was wondering if there is a way, besides giving ASP.NET full priviledges to everything, or writing a service which listens locally
> (on each of the 200 machines) for the web service to say "hey, I just got an installupdate request, I grabbed the file, this is
> where it is, you have the prerequisite permissions, you install it because I can't." (That's a verbose little webservice. ;)
>
> Thanks,
> WTH
>



Relevant Pages

  • Re: Id like to write a WebService update system for our product...
    ... We have windows services and components that are installed across a variety of machines. ... machines that may need to run a particular MSI install file. ... solution, I would like to simply have a web service running on each ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Is Windows inherently more vulnerable to malware attacks than OS X?
    ... in privileges. ... code on Windows; ... My right to track down malware on ... users need to be able to access their own files, install ...
    (comp.sys.mac.advocacy)
  • Re: Question on XP network security
    ... the user has administrator rights. ... >necessary privileges on his/her own workstation, ... have you considered using SMS to install apps remotely? ...
    (microsoft.public.windowsxp.security_admin)
  • Re: WinForms and WebServices
    ... The OP wants to create a WebService and a WebForms application to ... who will install the WebService on their Web servers. ... When that is installed your program can reference to that. ... So you say that I can change the web service URL in the config file at run ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WinForms and WebServices
    ... The OP wants to create a WebService and a WebForms application to ... who will install the WebService on their Web servers. ... When that is installed your program can reference to that. ... So you say that I can change the web service URL in the config file at run ...
    (microsoft.public.dotnet.languages.vb)