From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3507 invoked by alias); 11 Mar 2019 21:27:01 -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 3498 invoked by uid 89); 11 Mar 2019 21:27:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=username, adhere, HX-Languages-Length:2466, H*c:alternative X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Mar 2019 21:26:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1552339616; bh=EtY4uzDKM2L2OLrnaM/6kEgn4//gyxra8PHQXpX1oKo=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=QWZzUz6KEqfWY+xSY1HMXpqa79wk0InAs/t93PdHH0ceCtaeHZIPOEdFTTjP+uQHZ SiqOyIACzn+ILbB/kobg4vmBh7a+lhxvmIx+dPnOa8l388xGHRtGQNXsSz29mFj8yE R+j/s2TZH+9aMPIsEereexJ6i3vUDHsVLZc0Eg40= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from mail-lj1-f179.google.com ([209.85.208.179]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0Le5ne-1giS2G2R1Y-00pwp1 for ; Mon, 11 Mar 2019 22:26:56 +0100 Received: by mail-lj1-f179.google.com with SMTP id g80so422571ljg.6 for ; Mon, 11 Mar 2019 14:26:56 -0700 (PDT) MIME-Version: 1.0 References: <35062835-c3cd-799e-d13a-16f954db2a19@yahoo.com> <02f492d9-b334-1dab-aedb-17a747ede36b@SystematicSw.ab.ca> <6b67157a-a9c8-1a72-8997-be9ea8a00a14@yahoo.com> <6e219349-6cd2-c632-09fd-b56779084438@yahoo.com> <99354c7d-ce38-0f77-e1f0-17b160b0465e@yahoo.com> <20190227205039.GF4133@calimero.vinschen.de> <5C775155.6060100@tlinx.org> <20190228093911.GG4133@calimero.vinschen.de> In-Reply-To: <20190228093911.GG4133@calimero.vinschen.de> From: Bill Stewart Date: Mon, 11 Mar 2019 21:27:00 -0000 Message-ID: Subject: Re: Cygwin 3.0.1-1 Breaks ALL cygwin applications on Windows 7 x64 To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00259.txt.bz2 On Thu, Feb 28, 2019 at 2:39 AM Corinna Vinschen wrote: > > Since windows seems to adhere to the rule: > > "Case preserving", but "case ignoring", what does it > > mean to make sure all user and group names are > > case-correct? > > This all started here: > https://cygwin.com/ml/cygwin/2019-02/msg00109.html > > followed up with > > https://cygwin.com/ml/cygwin/2019-02/msg00113.html > > tl;dr: The easy and fast way out didn't work for accounts from > other domains than the machine's primary domain due to caching. > > So I thought it's a good idea to fetch the correct groupnames by an > additional LDAP call, but the performance hit is apparently too high in > some environments. FWIW, not sure if you're using the IADsNameTranslate interface ( https://docs.microsoft.com/en-us/windows/desktop/api/iads/nn-iads-iadsnametranslate). .. Example pseudo-code: NameTranslate::Init(ADS_NAME_INITTYPE_GC, null); Then: accountName = 'domain\username'; NameTranslate::Set(ADS_NAME_TYPE_NT4, accountName); caseCorrectedName = NameTranslate::Get(ADS_NAME_TYPE_NT4); // DOMAIN\UserName Init depends on a available AD server (GC in this example), of course, but seems pretty fast in my tests. Bill -- 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