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=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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.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: <50cba8d1-4794-8db9-d1f3-ab9476421db7 AT gmx DOT com> <20190215163817 DOT GI2702 AT calimero DOT vinschen DOT de> <20190215202936 DOT GL2702 AT calimero DOT vinschen DOT de> <20190215204326 DOT GO2702 AT calimero DOT vinschen DOT de> <20190215213159 DOT GQ2702 AT calimero DOT vinschen DOT de> In-Reply-To: <20190215213159.GQ2702@calimero.vinschen.de> From: Bill Stewart Date: Fri, 15 Feb 2019 14:48:28 -0700 Message-ID: Subject: Re: Windows to Cygwin username mapping: Domain before local account when duplicate name? To: cygwin AT cygwin DOT 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