From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84229 invoked by alias); 13 Feb 2019 15:53:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 84221 invoked by uid 89); 13 Feb 2019 15:53:42 -0000 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= X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Feb 2019 15:53:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1550073218; bh=yuoKinSIy73ccwzhhSEafEprZ63Adeu7QAOTVIu2BKA=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=WAAOJGXnoxfajnASCS044h6rYBycHLP9TUJVDtmBtL6IqlSSPUm3wdJSmFI2TPMDc H+srI38WSv0ngjMxmbEQdeUe+ZxMEhUMHIVeq73H6ggb/Qn7tHj5xRQ7OtVG6bCvGf Pk15j3S8G/yN8xNiDvrUoGPkZM16/0toF5v7yiu0= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from mail-lj1-f177.google.com ([209.85.208.177]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MSeBe-1gSTqw17Ho-00Rd3d for ; Wed, 13 Feb 2019 16:53:38 +0100 Received: by mail-lj1-f177.google.com with SMTP id g80so2441693ljg.6 for ; Wed, 13 Feb 2019 07:53:37 -0800 (PST) MIME-Version: 1.0 References: <20190213103200.GK3718@calimero.vinschen.de> <20190213122509.GL3718@calimero.vinschen.de> In-Reply-To: <20190213122509.GL3718@calimero.vinschen.de> From: Bill Stewart Date: Wed, 13 Feb 2019 15:53:00 -0000 Message-ID: Subject: Re: sshd: computer name's case must match? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00121.txt.bz2 On Wed, Feb 13, 2019 at 5:25 AM Corinna Vinschen wrote: > > sshd checks usernames case-sensitive against their name stored in the > > user DB. The problem that you can use differently cased usernames > > here is that the Windows function for checking the name is case- > > insensitive, so it takes the username any way it comes in and > > sshd eventually checks against the wrongly cased name. > > > > I fixed that partially in Cygwin by making sure that the account name > > stored in the internal passwd/group info is stored case-correct: > > https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=9a3cc77b2afc > > > > So if you have a domain DOMAIN and a user xyz > > > > $ getent passwd DoMaIn+XyZ > > > > Prior to the above patch it returned > > > > DOMAIN+XyZ:... > > > > Now it will return > > > > DOMAIN+xyz:... > > > > The problem is this: If the account is from another domain than the > > local machine or the machine domain, the call to LookupAccountSid to fix > > the account name won't fix the account name. > > > > Apparently the account name is cached on the local machine in exactly > > the same spelling as has been used when asking for the account the first > > time. I still have to find a way to workaround that. > > That should be fixed now as well. I uploaded new developer snaps to > https://cygwin.com/snapshots/ and will generate YA test release later > today. Thanks for taking a look at it. Now the problem is that the username must be specified with the correct case. It used to work with COMPUTERNAME+username - where 'username' might contain an uppercase character, but I could type it in all lower-case. Now I have to type the username in all correct case, which seems unexpected. >From a Windows perspective, usernames are case-retentive but not case-sensitive, so this behavior seems unexpected. Expected behavior: Ignore case in both computer names and user names. Thanks! 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