On 20/05/2010 18:50, Roland Mainz wrote:
Solaris currently documents a maximum username length of 8 characters
in passwd(4).
Erm... AFAIK this should be _bytes_, not characters. Characters would
be multibyte characters in this context with the small twist that
It is a effectively a 'char username[32]'.
tools like Solaris's tools like "useradd" always restricted this to
the ASCII character set while many sites allow (by using their own set
of tools) non-ASCII usernames (e.g. German umlauts are commonly used
on German university sites and some japanese customers have been using
Japanese characters for some time) and other operating systems even
allow a larger set of multibyte characters to be used.
IMO this case should either allow the use of multibyte characters or
expcitly refer to bytes/ASCII characters (see below).
This is is not being extended to support multibyte usernames.
I would give this case (if I could) a +1 with two minor changes:
1. "useradd" should clamp the string to 32bytes but _validate_ that
the input username doesn't get any multibyte characters cut-off in the
middle.
No, it doesn't do that today and that is out of scope for this case.
2. "useradd" should print a warning if non-ASCII characters (e.g.
umlauts in ISO 8859-1/15) or multibyte characters are used unless a
specific option is provided (e.g. -W)
This is easy to do... if you don't have time I can volunteer to do
this modification.
It isn't that I don't have time it is out of scope. This case is about
one single thing, changing the current limit of 8 to 32. It won't be
extended to anything else.
--
Darren J Moffat
_______________________________________________
opensolaris-arc mailing list
[email protected]