X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=OOjaQzx+kOHiE74fQwWp8Z+Nj7+FK DA5QqTE575dU9n0GX93VU2NFtm1y9A1NFaGH2+XXRKx7Me6ZlvEVq1HFd97q0CjC dagOEUo9rxIl+m4qSqA4610zvvCv6ht/t15mqA442wT9g5PA/Tf4bMSZI/rnlEHu HSW44Uv8ovIwrk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=gzygAv/R7yOHmvzaSZddgeB0tdI=; b=n0e uCuHdGWnCTa83zbLNgDWv3RiCmcsBLNuPx5eXm3nkZEnf7t6jPCJbqAJc76Axsho LuJeDyKb6N6izUHQWW2EKbkL5z/0v3ubFl0jl3oT/DcHQcUTiggWzTPc9Fjjmu0y jWVaV8aPtqZJCG3GFgeKMQf3oFh1vT8xztyH1Fv4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FORGED_SPF_HELO,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=scanner, avast, Avast, trick X-HELO: EUR04-DB3-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKkQySOxiM2qXqNFAOi5rrOJ/NqjdTUh1s5rvuuF0m45cmF4PyYbad+o0MXjVlEqv26ARPW/dsi8mSZtp7kVB2e2UjKy5cliXL4I0t5FEwD8l24y1gYpit+I0P06uoIm5dVfuQRYECW7gFD7IBe4kykxcjzq50YpvaXoMoKVukpaFjmrSW8whHE2uy/yUmxHh+2XZUjIaK/BctDrEPerewLFeDJQhB529QJ0w3y0lx/SyjebaBDvEQER56G3N09v/kEH6Gw+v7YafXfT7sjCpU/aBsyG7Fz4E1kIpYY1rmNJdxIZ12Cg8rr4lkqh36bQSZ9oDozExzu2AqcYyqo1Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0zDljt/EdRHEEfSUo7Ek71Rt6fgkXtLrGVLOUYcjUIs=; b=ZlwOHhMLcY5yXXTO0NPYMffRNkoLvEk+uaZTMAQ6z5sbV0yeS33URS0LJOQ3vk7g1fKYMeV+Kw0sDn/kSapv0GEl5OJZGg+0bkUNKt8MxuB28OpwYu7qVSj3AHjiDWBkR+oI+EbD2f3DOjd0/IxJgBSGd0HFG0jv2ila/UeCwLruuT7fwLASbWyraRJ+Yo90RYMsaQTOnnq8w1o0X6Fd0qEXojCVOUifKS1vIdDyrQJ2JW+cqOfLoa83SjKEvYARxB4rTC5Cq2cYboT734RtAu0SD3rhvm5z9xATaNXEfZeZA45yk3203ve8vT390VLDrcFmZIQpQIrY8W5ffv+Rvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=clarizen.com; dmarc=pass action=none header.from=clarizen.com; dkim=pass header.d=clarizen.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clarizen.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0zDljt/EdRHEEfSUo7Ek71Rt6fgkXtLrGVLOUYcjUIs=; b=TG/zxxVSyfToIOCI8tWiqK+SZbXOzMC9DbFqZ93jf177necCzIi0rZhOO4v+cdso72iufWUWFze/X/fjlEr7LOWWqnOlJwJfZZgT57WiI51tR9Bh8kgEu1W5fIV3qjwweyipg8AsYOFaILB/Yi4hG0tMmRmil9F/nUNPrR2GMvU= From: Maayan Apelboim To: "cygwin AT cygwin DOT com" Subject: RE: getent doesn't work properly Date: Mon, 28 Oct 2019 08:56:36 +0000 Message-ID: References: <20191018105229 DOT GE16240 AT calimero DOT vinschen DOT de> <20191023114234 DOT GZ16240 AT calimero DOT vinschen DOT de> <20191024140611 DOT GG16240 AT calimero DOT vinschen DOT de> In-Reply-To: <20191024140611.GG16240@calimero.vinschen.de> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Maayan DOT Apelboim AT clarizen DOT com; x-ms-oob-tlc-oobclassifiers: OLM:10000; received-spf: None (protection.outlook.com: clarizen.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Hw34VcZDiOcoC+2CgoIjNy+0jGNDB/c34H7Kz15BWzI7ZS3i5vvgJM0P+GdqOuEF5XttT1rTijQ+Y0sKepL5NwdaHs+Nn8c395sZSgzLeV8= Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x9S8vGY7017452 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 -- Corinna Vinschen Cygwin Maintainer --------------------------------- After reading your email I started to suspect having a domain issue. I removed the server from the domain, deleted all its relevant records and rejoined it. It seems the problem was solved for now. I already tried in the past removing it from the domain, and even reinstalled the server, but it didn't help, I think deleting all corresponding records after removing from domain did the trick. I will update if this issue re-occurs. I really appreciate the help! Thanks! -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple