From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 22 19:10:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 734CA1065670 for ; Wed, 22 Apr 2009 19:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4D8D18FC21 for ; Wed, 22 Apr 2009 19:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3MJA1Js062633 for ; Wed, 22 Apr 2009 19:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3MJA1L6062632; Wed, 22 Apr 2009 19:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 22 Apr 2009 19:10:01 GMT Resent-Message-Id: <200904221910.n3MJA1L6062632@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Dillon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7885A106566B for ; Wed, 22 Apr 2009 19:03:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 669498FC15 for ; Wed, 22 Apr 2009 19:03:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3MJ3Y7D080582 for ; Wed, 22 Apr 2009 19:03:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3MJ3Y1P080581; Wed, 22 Apr 2009 19:03:34 GMT (envelope-from nobody) Message-Id: <200904221903.n3MJ3Y1P080581@www.freebsd.org> Date: Wed, 22 Apr 2009 19:03:34 GMT From: Chris Dillon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/133926: MAXLOGNAME, the username length limit, is too small X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 19:10:01 -0000 >Number: 133926 >Category: misc >Synopsis: MAXLOGNAME, the username length limit, is too small >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 22 19:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Chris Dillon >Release: 6.4-STABLE, 7.1-STABLE >Organization: >Environment: >Description: The current 16-character username limit is too short in some situations. "firstname.lastname" style usernames can easily exceed 16 characters. In virtual-domain systems you may want local users with names such as "user_domain.com" which can also easily exceed 16 characters. When using Samba with Winbind and nsswitch to integrate Active Directory users into FreeBSD, the AD domain prepended to the AD username in the format of "DOMAIN.username" will often exceed 16 characters. >How-To-Repeat: Try to create or use a 16-character username. >Fix: I have been locally patching my own systems to increase MAXLOGNAME in param.h to 33 and UT_NAMESIZE in utmp.h to 32 for over 5 years and have not run into any issues regarding very long usernames. I propose that the limit be increased to 32 or 64 characters for FreeBSD 8.0 to allow FreeBSD to be used out-of-the-box in the situations I listed in the Description. If changing the default is not possible, we could consider a make.conf variable or something similar to make it easy for a user to re-compile the system with a larger username length limit. As for compatibility with username length limits on other unix systems, my Google searches have hinted that there are systems which still have 8-character limits, some with 16 character limits, and others with 32 character limits, which is the highest I could find without digging too deeply. Since we have been at 16 characters since FreeBSD 3, we broke the archaic 8 character compatibility limit a long time ago, so I doubt that defaulting our limit to 32 or 64 is going to break anything any more than it already is. >Release-Note: >Audit-Trail: >Unformatted: