From nobody Wed Apr 13 06:35:59 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3F5541AFE50F for ; Wed, 13 Apr 2022 06:36:03 +0000 (UTC) (envelope-from SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdXst2GfFz4Ql9 for ; Wed, 13 Apr 2022 06:36:02 +0000 (UTC) (envelope-from SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl) Date: Wed, 13 Apr 2022 08:35:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1649831760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=UBLWruWNvErnUuU8ocE5M0CCyiCAaI7owNZNn8KjgR8=; b=fc6wEfqTawHoZuS5hTjVQYGIZEq7Iol4GhWP4WyeyaGfLZkTgLjlckHaoz6mzTK3WcGEnD boAIXu2lHfJRh/VmBDUS8uZnEEyiKesrSNWtwTLuj2AWLEH6r7Tpvtyye6dLRL+l7LYEM4 n6AsL+4X6ydqoWX/yWLeI4E7/KNi5bN0EWT0z1EX7VuoGaDsLcGYZFGZtMwTWeu1VN8Nf4 q1RuIABSqtwvh3vwH0PvL7+9Q6nwDBDLikOLZDxS1T0rHnV91v52egxvewLOJchAnJnb+4 pO1aPXFL/glVedAbChU9woqd9OXHjVzzTbRxNYCgQ3Poxp+2DEYJYqetS5Ihvg== From: Ronald Klop To: Rick Macklem , freebsd-current Message-ID: <837488522.1046.1649831759547@localhost> In-Reply-To: Subject: Re: Sanity limit for length of user/group names? List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1045_1422177910.1649831759544" X-Mailer: Realworks (602.70.2cf484b) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4KdXst2GfFz4Ql9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=fc6wEfqT; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-1.68 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-0.99)[-0.990]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RWL_MAILSPIKE_EXCELLENT(0.00)[194.109.157.24:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.51)[-0.512]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; MLMMJ_DEST(0.00)[freebsd-current]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=qXL2=UX=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_1045_1422177910.1649831759544 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, A google search gives me this page: https://forums.freebsd.org/threads/username-length-16.28189/ . It talks about MAXLOGNAME and limits in utmp. Regards, Ronald Van: Rick Macklem Datum: 13 april 2022 03:08 Aan: freebsd-current Onderwerp: Sanity limit for length of user/group names? > > > Hi, > > The NFSv4 RFCs do not specify an upper limit for the length > of a user or group (called Owner/Owner_group in NFSv4) string. > > However, PR#260546 notes that a sanity upper limit for their > length is needed. > > Is there any constant in FreeBSD that defines the upper limit for > the length of a user or group name? > (I can find the maximum length of a hostname and I think that can > be used as a safe upper limit for a domain name, as well. The Owner/ > Owner_group names include "@domain" on them.) > > Thanks for any help with this, rick > > > > > ------=_Part_1045_1422177910.1649831759544 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

A google search gives me this page: https://forums.freebsd.org/threads/username-length-16.28189/ .
It talks about MAXLOGNAME and limits in utmp. 

Regards,
Ronald

Van: Rick Macklem <rmacklem@uoguelph.ca>
Datum: 13 april 2022 03:08
Aan: freebsd-current <freebsd-current@freebsd.org>
Onderwerp: Sanity limit for length of user/group names?

Hi,

The NFSv4 RFCs do not specify an upper limit for the length
of a user or group (called Owner/Owner_group in NFSv4) string.

However, PR#260546 notes that a sanity upper limit for their
length is needed.

Is there any constant in FreeBSD that defines the upper limit for
the length of a user or group name?
(I can find the maximum length of a hostname and I think that can
 be used as a safe upper limit for a domain name, as well. The Owner/
 Owner_group names include "@domain" on them.)

Thanks for any help with this, rick





------=_Part_1045_1422177910.1649831759544--