X-Recipient: archive-cygwin@delorie.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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=m89Atlz
	SyRZLA2wDbRfybwhRjd7kM8X1IFKSJqB++O7F/XfPOeX17CZjMhvYSZ7vqPAGA0c
	ZEKRNJdYhtrTZtO2jGoun7JQtP5fpplgTtv6aI22wMxKzTaKhd2F7hVBcYppSEtB
	n8Eo6lfS3zOBHCX1AQI1FQcZs8QuMPv6K96E=
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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; s=default; bh=EvruYdiUnbw5z
	qLKTZdSP41J9WQ=; b=C0wj6b9k9a52D2c6/dZ8LGvpPAHonfAPGBGIwQA3todYq
	PxU1sWP1GXOxLuMVt6g7HHWLyhn/EXDv5PxGhNu0a5UyPNLgkbRKsvq2n36kjWG2
	COwm2TzKRUxrSOWeojKmPwFduDA6qeNaysvhWsTxHvP/jYjO/d9OM4sAO7F28g=
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
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
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
MIME-Version: 1.0
References: <CAJ1FpuNbULAo1Gb5Fo7w30PbxdZ9W=XFpiXAADCPqrhrM-TbEg@mail.gmail.com> <c627ae61-2b16-8c01-d0fe-31d48aae8821@yahoo.com> <CAJ1FpuO1nVEySyK1rc7c4AGx4+GsAHikBb54akebky8-yXM1HQ@mail.gmail.com> <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 <bstewart@iname.com>
Date: Mon, 11 Mar 2019 15:26:27 -0600
Message-ID: <CANV9t=SUS2RU1NASRhF3J73LX6CkK=CSry+1RpYCFF_cofM8kg@mail.gmail.com>
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

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

