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=bE1TgVi
	lfRNckOUzb0xsGmjSne3og/GHows3iMg4Q1yZryVvxYM+TmbqY3XAssiflPkuAZB
	BwxHBctp3cTK5Q07rawB+0qInVaqmqERCW/bwoyYZnRRJ9R8JMtLY02X6QPpqS4b
	ykqsTTe6vKFieCf/Ikfqs92ZjCsuE2vMnzMA=
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=eOfiUBO9QPMuE
	itD6uhzYtfdswg=; b=Oh0X9aEG9McCDohBntQXaeb81NrXvKjPf3sZNvETxTuLV
	bYoFIu8jADTWyeeojUK9JT20AILXrRTVPHdZXeK9W37r/wyiBhFR0Hz0B4h8Addu
	JFrXR3A/qE5zPztkMvBpLw1F5u4s2TBAYFKi/BSr/UweC0/EWLw7aMl9It/ik0=
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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=password, states
X-HELO: mout.gmx.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com;	s=dbd5af2cbaf7; t=1550267323;	bh=nYT81aJD4hTbOtLMfnVDFBeQKeATA5/8gxDtteJu2Vs=;	h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To;	b=C6vrc3okQL1NtSOMBmU8apuCTrmPvTOgiSnY1AgDBM5RtBxAT4rIrcDDtBjD+MNPO	 G35hUUoEGmQ40a+t8HWQN//GrTxvnC2G5LE5V7IDgknj0Iz5+IL33G8o4C0uXlZKoi	 ATiOmmvRpfofb4j+MBy77T7fM/of6lLHO5oNxFmw=
X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79
MIME-Version: 1.0
References: <CANV9t=SNfgP-CA32yfPwLv2=d0F8xtpdCT4o_wwGFGE+F3SEuA@mail.gmail.com> <50cba8d1-4794-8db9-d1f3-ab9476421db7@gmx.com> <CANV9t=QQ1higAt1qeDF4fckkz_6eqQJtdhau8+uhrAvGtWUK_A@mail.gmail.com> <20190215163817.GI2702@calimero.vinschen.de> <CANV9t=Rm+su=qDqdFN-LqiMLEAHJD7WxW_OSqqSpqgeb6ir++w@mail.gmail.com> <20190215202936.GL2702@calimero.vinschen.de> <CANV9t=SdQPZw_VF95HwDrVRU1KzdHA61GJBRgA1weHryHUO6-w@mail.gmail.com> <20190215204326.GO2702@calimero.vinschen.de> <CANV9t=Q5M+V9TPEN-GaGzLtK_8AO5fUenajQ+T-VZX6+kbrMMw@mail.gmail.com> <20190215213159.GQ2702@calimero.vinschen.de>
In-Reply-To: <20190215213159.GQ2702@calimero.vinschen.de>
From: Bill Stewart <bstewart@iname.com>
Date: Fri, 15 Feb 2019 14:48:28 -0700
Message-ID: <CANV9t=R1aTMWPNNs0xQrTHdOnsZ+UMiu53MP-ggzv4kZZTzrdg@mail.gmail.com>
Subject: Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

On Fri, Feb 15, 2019 at 2:32 PM Corinna Vinschen wrote:

> > The section that starts with "Let's discuss the SID<=>uid/gid mapping
> > first. Here's how it works." states this order:
>
> It doesn't state an order.  It describes the mapping from SID to
> uid/gid, and there's *no* order at all to it, just a description how
> certain SIDs are mapped to certain uid/gid values given numerical
> recipies.

Right, I assumed that it was an order. I see I was misunderstanding this.

> If you login locally to a domain member machine the default domain is
> the logon domain of this machine.  If that's not what you want you have
> to choose the logon domain of your account explicitely, even if it's the
> local machine SAM.  Windows will not try to find the user name locally
> if you didn't chose it explicitely.  You get "The user name or password
> is incorrect. Try again" instead.

If you are talking about logging on at a Windows machine, that's true.
But IIRC this isn't what the APIs do (at least the .NET ones): If you
specify a username without an authority, the APIs search the local
account database first.

Regards,

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

