delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/13/15:56:05

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=yKL1/Zf
0HXLL73qnThjWT9vguqC6biL1Ez3Xh/ckkF03wp48UGLMq7iqTiU/G7gQQyBeDzq
seTqmtY71Vv7HLI86oS8PEFXmLBaSv4LtwLez/cGCT4aebL6FOrYqVnaWpwHziZH
sQ3lC6Lya4RNEhHGsehB2zwXXWO6mcxvX3gg=
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=jfaHvGkTmB2gk
Nwgga1znnmEtj8=; b=Jnnu3ELYNrbDHGhVflUtr/2yLc4AzTT5M0CLW3VQr+VmG
/8cOgYfTvQq+2qjBhbZzfeUDUKAMQIdsTe+MbigXtV9SBjGO9acBGwFz1/82vizY
59iqBIIPSv9LDwilveYvfyA7EuUjViULqpccCuY6iXIAFyzwjm+2v2ftoNr5j0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=1550091348; bh=LQNqyAUbr45dSIFHmYM1NG6oUyrgoXl+1GxLEfKxOi0=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=cpzN4LNVs7LJfDP5T4A6ymy+AQmPDztZCb/sVqIdMz6qil6SVLsCMF5mOveR3F/aw l9sZmhOUQoaXobgly1Qf4DHxi4bqVXRngstpIiapAeUlKORZ7wXbnPZnWNAHeR1CYu L+t1gR4iGfnU22tHnXD485ckiZ9U0ORRkXGBtofo=
X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79
MIME-Version: 1.0
References: <CANV9t=QxA_FW-3OCZuYFJpxrekbO8Yc-WsnxGLiyc0Bqz=fPUw AT mail DOT gmail DOT com> <20190213103200 DOT GK3718 AT calimero DOT vinschen DOT de> <20190213122509 DOT GL3718 AT calimero DOT vinschen DOT de> <CANV9t=TW6Kwxo9pN=3Hp8Yzi5A4i2qQpiLoGyEqxR5rq7vu5pA AT mail DOT gmail DOT com> <20190213161029 DOT GY3718 AT calimero DOT vinschen DOT de> <CANV9t=RiBTNsGUwEf6BS9A6b=fMcHeiGD_RDOueKHJ5c9Zwe_g AT mail DOT gmail DOT com> <20190213162614 DOT GA3718 AT calimero DOT vinschen DOT de> <CANV9t=RmEik5VN-Zebc5h+9JUqYZL0QO5RP0UH5F--=zX8NkYg AT mail DOT gmail DOT com> <20190213175541 DOT GE3718 AT calimero DOT vinschen DOT de> <CANV9t=S6zO_qXBrUALxTCKPCPkXfgc-6FFchV_prbkMyD7GpRA AT mail DOT gmail DOT com> <20190213202537 DOT GF3718 AT calimero DOT vinschen DOT de>
In-Reply-To: <20190213202537.GF3718@calimero.vinschen.de>
From: Bill Stewart <bstewart AT iname DOT com>
Date: Wed, 13 Feb 2019 13:55:34 -0700
Message-ID: <CANV9t=Q49YOZ26AEKu0nx4UW2hGvaXt+0wf3nKtRq3_AguYz6A@mail.gmail.com>
Subject: Re: sshd: computer name's case must match?
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Wed, Feb 13, 2019 at 1:25 PM Corinna Vinschen
<corinna-cygwin AT cygwin DOT com> wrote:
> > (a) Domain or computer name portion to the left of the "+" must always
> > be uppercase
>
> No, the case must match the case of the domain or computername.
>
> > (b) Username after "+" sign (or username alone, without "+" sign) must
> > match case exactly
> >
> > Questions:
> >
> > 1. Are the above two statements (a) and (b) complete/correct?
> >
> > 2. With regards to (a), are there any cases where the domain or
> > computer name is not uppercase?
>
> Yes.  In my domain I have four machines using all-lowercase machine
> name for no apparent reason.  One is a Linux machine, one is a
> Windows 7 64 bit, the other two are Windows 8.1 32 and 64 bit machines.
> All others, including the Windows 8 machines, are all uppercase.

The computer or domain name case inconsistency would seem to be a
source of confusion, mainly because on the Windows side we are
case-retentive but not case-sensitive, and it is not immediately
obvious which case will apply in the case of a computer or domain
name.

According to: http://pubs.opengroup.org/onlinepubs/9699919799/ -

> 3.437 User Name - A string that is used to identify a user;
> see also User Database. To be portable across systems
> conforming to POSIX.1-2017, the value is composed of
> characters from the portable filename character set. The
> <hyphen-minus> character should not be used as the first
> character of a portable user name.
>
> 3.282 Portable Filename Character Set
>
> The set of characters from which portable filenames are
> constructed.
>
> A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
> a b c d e f g h i j k l m n o p q r s t u v w x y z
> 0 1 2 3 4 5 6 7 8 9 . _ -
>
> The last three characters are the <period>, <underscore>,
> and <hyphen-minus> characters, respectively.

From this reference, it seems that a POSIX-compliant username cannot
contain the + character?

So my suggestion is for Cygwin to convert the name part before the +
automatically to upper (or lower) case.

Thoughts?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019