delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/11/17:27:12

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: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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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 AT mail DOT gmail DOT com> <c627ae61-2b16-8c01-d0fe-31d48aae8821 AT yahoo DOT com> <CAJ1FpuO1nVEySyK1rc7c4AGx4+GsAHikBb54akebky8-yXM1HQ AT mail DOT gmail DOT com> <35062835-c3cd-799e-d13a-16f954db2a19 AT yahoo DOT com> <02f492d9-b334-1dab-aedb-17a747ede36b AT SystematicSw DOT ab DOT ca> <6b67157a-a9c8-1a72-8997-be9ea8a00a14 AT yahoo DOT com> <6e219349-6cd2-c632-09fd-b56779084438 AT yahoo DOT com> <99354c7d-ce38-0f77-e1f0-17b160b0465e AT yahoo DOT com> <20190227205039 DOT GF4133 AT calimero DOT vinschen DOT de> <5C775155 DOT 6060100 AT tlinx DOT org> <20190228093911 DOT GG4133 AT calimero DOT vinschen DOT de>
In-Reply-To: <20190228093911.GG4133@calimero.vinschen.de>
From: Bill Stewart <bstewart AT iname DOT 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 AT cygwin DOT com
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019