Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5620E73C6 for ; Wed, 2 Nov 2011 00:09:58 +0000 (UTC) Received: (qmail 88416 invoked by uid 500); 2 Nov 2011 00:09:57 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 88265 invoked by uid 500); 2 Nov 2011 00:09:57 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 88229 invoked by uid 99); 2 Nov 2011 00:09:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 00:09:57 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 00:09:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 478B132D560 for ; Wed, 2 Nov 2011 00:09:32 +0000 (UTC) Date: Wed, 2 Nov 2011 00:09:32 +0000 (UTC) From: "Sebb (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <1010860429.48554.1320192572294.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2088724172.9400.1314196109951.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DAEMON-215) Cannot set local username and password for a Win32 service MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DAEMON-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated DAEMON-215: ------------------------ Fix Version/s: (was: 1.0.7) > Cannot set local username and password for a Win32 service > ---------------------------------------------------------- > > Key: DAEMON-215 > URL: https://issues.apache.org/jira/browse/DAEMON-215 > Project: Commons Daemon > Issue Type: Bug > Components: Procrun > Affects Versions: 1.0.7 > Environment: win32 / server 2003 > Reporter: wessels > Assignee: Mladen Turk > Priority: Minor > Original Estimate: 24h > Remaining Estimate: 24h > > installing a new service without supplying the --ServiceUser --ServicePassword installs the service correctly but using the LocalSystem account. If you want to use a local user, which of course has at least the "log on as a service" right, and supply the credentials via the parameters you get an error. To be more specific, in service.c line 211, the CHANGE_SERVICE macro fails with error 87L ERROR_INVALID_PARAMETER. This happens at least when creating and updating a service. Setting other options via this macro work fine, just the username password fail (standalone and in combination with other parameters). > The solution is specifying SERVICE_WIN32_OWN_PROCESS as ServiceType parameter instead of SERVICE_NO_CHANGE in ChangeServiceConfigW line 27 second parameter. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira