Date: Fri, 5 Apr 2002 14:15:26 +0200 (CEST) From: Eric Masson <e-masson@kisoft-services.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/36785: Add support for $ character in usernames Message-ID: <20020405121526.B7566E6C15@notbsdems.nantes.kisoft-services.com>
next in thread | raw e-mail | index | archive | help
>Number: 36785
>Category: bin
>Synopsis: Add support for $ character in usernames
>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: Fri Apr 05 04:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Eric Masson
>Release: FreeBSD 4.5-STABLE i386
>Organization:
Kisoft Services
>Environment:
System: FreeBSD notbsdems.nantes.kisoft-services.com 4.5-STABLE FreeBSD 4.5-STABLE #1: Wed Feb 20 17:31:13 CET 2002 root@notbsdems.nantes.kisoft-services.com:/usr/obj/usr/src/sys/TP390 i386
>Description:
Running Samba as a PDC for Windows XP workstations on FreeBSD implies the
ability to create user accounts ending by the character '$' in batch mode.
pw useradd doesn't allow that.
>How-To-Repeat:
pw useradd stationxp$ -g wheel -c Machine -d /dev/null -s /nonexistent
pw: invalid character `$' in field
>Fix:
*** pw_user.c.original Thu Mar 21 17:54:15 2002
--- pw_user.c Fri Apr 5 13:35:13 2002
***************
*** 1195,1201 ****
pw_checkname(u_char *name, int gecos)
{
int l = 0;
! char const *notch = gecos ? ":!@" : " ,\t:+&#%$^()!@~*?<>=|\\/\"";
while (name[l]) {
if (strchr(notch, name[l]) != NULL || name[l] < ' ' || name[l] == 127 ||
--- 1195,1201 ----
pw_checkname(u_char *name, int gecos)
{
int l = 0;
! char const *notch = gecos ? ":!@" : " ,\t:+&#%^()!@~*?<>=|\\/\"";
while (name[l]) {
if (strchr(notch, name[l]) != NULL || name[l] < ' ' || name[l] == 127 ||
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020405121526.B7566E6C15>
