On 21/05/2010 10:53, [email protected] wrote:
Roland Mainz<[email protected]>  wrote:

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.

As we are in the 21st century, we could even support longer names.
The 32 char limit is from POSIX.1-1988.

We could but they would be truncated in utmpx, so going beyond 32 requires changing utmpx to have a longer ut_user field and that will break a lot of things.

This is case is intended to be simple and to make official that fact that most of Solaris already works just fine with 32 rather than 8.

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.

POSIX explicitly permits non-US-ascii login names.

Wither POSIX allows it or not isn't relevant to this case. I am not extending this case to change what we do don't support about non-US-ASCII long names. This case is about one simple thing, changing the existing documented value of 8 to 32 and fixing the appropriate sysconf(3C) interfaces to match that.

--
Darren J Moffat
_______________________________________________
opensolaris-arc mailing list
[email protected]

Reply via email to