X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0	tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgIFAEFNy1CcKEet/2dsb2JhbABFhji3SoEDFnOCHgEBAQQSERFRBgEIDQkBAwIGCxUCBB0TFQIBBQkBBBsah3EMmx+ESooHkwyBIos1gQ6CIjJhA405iWyEcYo7gnOCIg
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Cygrunsrv and special Windows virtual accounts "NT SERVICE"
Date: Fri, 14 Dec 2012 16:01:55 +0000
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D053F8671@MLBXv04.nih.gov>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id qBEG2fZO013376

Just checking whether this is going to be implemented...

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI

> -----Original Message-----
> Sent: Friday, December 07, 2012 11:50 AM
> Subject: RE: Cygrunsrv and special Windows virtual accounts "NT
> SERVICE"
> 
> > per the bad user/pass combo, presumably).
> 
> Per MSDN, http://msdn.microsoft.com/en-us/library/windows/desktop/ms682450%28v=vs.85%29.aspx :
> 
> If the account name specified by the lpServiceStartName parameter is
> the name of a managed service account or virtual account name, the
> lpPassword parameter must be NULL.
> 
> But cygrunsrv passes either "" or the actual string (when any username
> is provided).
> 
> It should pass NULL for the usernames that look like "NT
> SERVICE\svcname":
> 
>   if (!(sh = CreateService (sm, san.name (), disp, SERVICE_ALL_ACCESS,
> 			    SERVICE_WIN32_OWN_PROCESS |
> 			    (interactive ? SERVICE_INTERACTIVE_PROCESS : 0),
> 			    type == Auto ? SERVICE_AUTO_START
> 			    		 : SERVICE_DEMAND_START,
> 			    SERVICE_ERROR_NORMAL, mypath, NULL, NULL,
> 			    dependencies,
> 			    username, username ? pass ?: "" : NULL)))
> 
> Anton Lavrentiev
> Contractor NIH/NLM/NCBI


