From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49825 invoked by alias); 24 Oct 2019 14:06:18 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 49800 invoked by uid 89); 24 Oct 2019 14:06:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=anybody, virus, interaction, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Oct 2019 14:06:16 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mhnnc-1hjvDI39lY-00dq1L; Thu, 24 Oct 2019 16:06:12 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id ED26DA8045C; Thu, 24 Oct 2019 16:06:11 +0200 (CEST) Date: Thu, 24 Oct 2019 14:06:00 -0000 From: Corinna Vinschen To: Maayan Apelboim Cc: cygwin@cygwin.com Subject: Re: getent doesn't work properly Message-ID: <20191024140611.GG16240@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Maayan Apelboim , cygwin@cygwin.com References: <20191018105229.GE16240@calimero.vinschen.de> <20191023114234.GZ16240@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ufMBWnG1WFkAvCRz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-10/txt/msg00148.txt.bz2 --ufMBWnG1WFkAvCRz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2185 On Oct 23 13:33, Maayan Apelboim wrote: >=20 >=20 > Since I can't reproduce this problem, would you mind trying to run getent= under strace? It would be helpful to get 2 strace outputs for the same ac= count, one working, one failing. Call it like this: >=20 > $ strace -o getent-1.trace getent passwd >=20 >=20 > Thanks, > Corinna >=20 > -- > Corinna Vinschen > Cygwin Maintainer >=20 >=20 > --------------- >=20 > Attached. Thanks. What happens is that in the non-working scenario the user name is refused by Cygwin because it's apparently not in the primary domain of the machine. I.e., if the machine's primary domain is "dom0", and "user1" is in "dom1", then the account has to be called "dom1+user1". The name only is forbidden in this case. However, this doesn't explain why this happens at all since apparently "user1" is in the primary domain of the machine, and why it only fails intermittendly. In both cases, working and non-working, the domain is returned by the same Windows call LookupAccountNameW. What's really strange is that in the working case a lot of network related Windows DLLs are loaded into the process, e.g. wshqos.dll, WSHTCPIP.DLL, wship6.dll etc., while this does not happen in the non-working case. None of these DLLs is requested by Cygwin, so this is something occuring in the native Windows background. This is a bit suspicious and may point to some interaction with a virus scanner or something along these lines, and which for some reason doesn't always work as desired (Avast, anybody?) Can you check this, perhaps? Apart from that first question is, is the domain really called "dom" and is the user account name really "user1"? I'm asking because the name may collide with another account name from a builtin or second domain, and sometimes the wrong user account is returned by the Windows functions for whatever reason. Second question is, can I send you the URL to a Cygwin test DLL with extended debug info in private email? In this case I'd only need the non-working trace, preferredly verbatim, and you can return the trace by private email as well. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --ufMBWnG1WFkAvCRz Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl2xr9MACgkQ9TYGna5E T6BkPg/9GxAC3RFfq/tkoupFpNIDCZL+rNtfcemUJ2CVf7zOJGknWYHt+/2SdopX 6tnHczQUamSqZI8KSdGT24r3YsxckuecEiYdqz8+G1NQR83R+YvBXaGdfQ+scWCe IuUT5aDBXZ6BQSmDf/mPYvHU1Ve2QF/lMQBVDfgdx9uDo5a1eyGq+qOPYgyez7V8 R+yc18VmayZ1+/P/0CLEAQZHTMkx7kRfxmBORmE+sVsCAs+XbacFTF7qKTkMduL+ PJM9gRI6YzBY8NhnW6u4FjTwv6A54Zs51JATcUJiuW0eWFodauLqbmQfm/BGJs/x DxoY8TWt3DlLAqdPq2Ql13+VwIhaxvGQzDKdHSMdzCfkrbYi8CZKwdW42LY1i92R VjcAwD8mLQIoI02OhhaY7Y+NKZj9+twgfrauTezqqRdBMJEz2QILHav2LCm190Xa XjDWoYLCKpH+HQal8PIkYU9CitLljSUWkBseBhkqV5ritvbcBpXyFQ0Iv26BPWlr igI6GXcfK+j9CLfXagXIQTQARqgsEsGPKbGSf1fu4y/S2b876YbnL5s3Q7fg+hxW DIfmysebNuu2xYyS3DX5mQAHeePap/tE5cex9yR62wfhori/3ob/+a/6T9eUsz9e pIgur0xU7kTogxI3GdGjqdWJ1ewcP6tPIamW/cSKkfd+YO0y0/g= =ziIS -----END PGP SIGNATURE----- --ufMBWnG1WFkAvCRz--