in reply to Re: Start/stop win32 services with CGI - is Perl a good choice?
in thread Start/stop win32 services with CGI - is Perl a good choice?

Assuming that you are using IIS as the web server - maa has pointed out one of the ways to make sure that you are using the correct user account to stop and restart services (an action that requires user permissions). The other ways include:

  1. Enabling basic authentication and setting the domain that IIS checks against to be the local machine. Login as a user with the correct permissions to run your CGI script.
  2. Change the user account that IIS uses for anonymous access to one with appropriate access.

Neither method is particularly desirable. The first method passes unecrypted user credentials over the network and the second method requires no Windows NT credentials to be passed.

The second method is however a useful technique if the CGI script is participating in another logon scheme such as a cookie based system or if it is protected by a secure single signon system.

  • Comment on Re: Re: Start/stop win32 services with CGI - is Perl a good choice?