SSH or su command breaks because of long username (more than 16 chars)

Status
Not open for further replies.

gcl

Cadet
Joined
Feb 13, 2012
Messages
3
Our nas integrated woth our LDAP or Active Directory and we use the following format "domain\usernameXX" .
it won't work when they are longer than 16 characters. (which is FreeBsd default).
I believe it can be set up to 64 chars.

Thanks.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
This is known AFAIK, its a limitation on FreeBSD utmp. I think FreeBSD 9.0 fixes this with utmpx...
 

peterh

Patron
Joined
Oct 19, 2011
Messages
315
Violating standards will hurt. One such standard is length of userid.
To be future-safe, limit userid to < 12 chars, usacii character set.
 

gcl

Cadet
Joined
Feb 13, 2012
Messages
3
Our nas use LDAP or Active Directory for authenication.. that is why it longer than 16 chars. FreeBSD kernel support longer than 16 chars.




Violating standards will hurt. One such standard is length of userid.
To be future-safe, limit userid to < 12 chars, usacii character set.
 

peterh

Patron
Joined
Oct 19, 2011
Messages
315
And thats why you have problems.
Even if you could tweak freenas you will encounter other problems later.

Userid <= 8 bytes usascii will be a safe bet. ( backslash will never be a safe bet enywhere )
 
Status
Not open for further replies.
Top