public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Bill Stewart <bstewart@iname.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin 3.0.1-1 Breaks ALL cygwin applications on Windows 7 x64
Date: Mon, 11 Mar 2019 21:27:00 -0000	[thread overview]
Message-ID: <CANV9t=SUS2RU1NASRhF3J73LX6CkK=CSry+1RpYCFF_cofM8kg@mail.gmail.com> (raw)
In-Reply-To: <20190228093911.GG4133@calimero.vinschen.de>

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

  reply	other threads:[~2019-03-11 21:27 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26 16:28 Jerry Baker via cygwin
2019-02-26 18:30 ` Jerry Baker via cygwin
2019-02-26 18:38   ` Houder
2019-02-26 18:44     ` Jerry Baker via cygwin
2019-02-26 18:45       ` Richard Campbell
2019-02-26 18:59       ` Vince Rice
2019-02-26 19:19         ` Jerry Baker via cygwin
2019-02-26 19:32           ` Ken Brown
2019-02-26 20:00             ` Jerry Baker via cygwin
2019-02-26 20:42               ` Jerry Baker via cygwin
2019-02-26 21:09                 ` Vince Rice
2019-02-26 22:10                 ` Doug Henderson
2019-02-26 22:19                   ` Jerry Baker via cygwin
2019-02-26 22:48                     ` Jerry Baker via cygwin
2019-02-26 23:00                     ` Doug Henderson
2019-02-27  0:50                       ` Jerry Baker via cygwin
2019-02-27  1:50                         ` Steven Penny
2019-02-27  2:01                           ` Jerry Baker via cygwin
2019-02-27  2:43                             ` Jerry Baker via cygwin
2019-02-27  3:21                               ` Doug Henderson
2019-02-27  3:45                                 ` Jerry Baker via cygwin
2019-02-27  6:55                               ` Houder
2019-02-27  2:56                             ` Steven Penny
2019-02-27  3:05                               ` Jerry Baker via cygwin
2019-02-27  3:12                                 ` Steven Penny
2019-02-27  3:27                                   ` Jerry Baker via cygwin
2019-02-27  5:11                                     ` Steven Penny
2019-02-27 16:17                                       ` E. Madison Bray
2019-02-27  5:57                                 ` Vince Rice
2019-02-27  7:26                         ` Brian Inglis
2019-02-27 20:23                           ` Jerry Baker via cygwin
2019-02-27 20:27                             ` Jerry Baker via cygwin
2019-02-27 20:50                               ` Jerry Baker via cygwin
2019-02-27 21:48                                 ` Corinna Vinschen
2019-02-28  3:12                                   ` Jerry Baker via cygwin
2019-02-28  9:39                                   ` L A Walsh
2019-02-28 10:52                                     ` Corinna Vinschen
2019-03-11 21:27                                       ` Bill Stewart [this message]
2019-03-11 21:38                                         ` Achim Gratz
2019-03-11 21:46                                           ` Bill Stewart
2019-03-12  0:20                                             ` Andrey Repin
2019-02-27 20:44                             ` Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANV9t=SUS2RU1NASRhF3J73LX6CkK=CSry+1RpYCFF_cofM8kg@mail.gmail.com' \
    --to=bstewart@iname.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).