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=IVZvHGf U7C/Axks8tv0G8BcZptjQgykzPgvV9WmSCeQ+o9HC4+H9NXA9vxljXadSquVfT9x 68sgeOpsg0eKoVAzMzsh4plYJGCWqDUatWp0eYCLn40cujXfmxIj6seZggRG+Bnt ltwG1kjIhjVt/iIdKg6K5Q2YzgVzG0m9MaDg= 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=Zfs0u6dA2HIR5 E8d/rWqRbYNxiI=; b=tNCBfpR3kINA76OH9HmEm9Pb4BKPMlYRHV9U0JAmIWqR0 7bVOjz7XNXPfqLs47o/tbhtrYThikDIfVUsYJo2nx58Fow6IAgrGl2A04dFiIwrN 6Q7udmpGoqlvNCR9rUx8Mxs9bcTEhn0KWFpsFlQj2hxpsl3XRxmjl2DgE8QBKg= 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= X-HELO: mout.gmx.com 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 MIME-Version: 1.0 References: <20190213103200 DOT GK3718 AT calimero DOT vinschen DOT de> <20190213122509 DOT GL3718 AT calimero DOT vinschen DOT de> In-Reply-To: <20190213122509.GL3718@calimero.vinschen.de> From: Bill Stewart Date: Wed, 13 Feb 2019 08:53:23 -0700 Message-ID: Subject: Re: sshd: computer name's case must match? To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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