Mailing List Archive

[Bug 952] login_init_entry: Cannot find user when username length is 64
http://bugzilla.mindrot.org/show_bug.cgi?id=952

Summary: login_init_entry: Cannot find user when username length
is 64
Product: Portable OpenSSH
Version: 3.9p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P4
Component: sshd
AssignedTo: openssh-bugs@mindrot.org
ReportedBy: brhamon@cisco.com


struct logininfo (loginrec.h) defines LINFO_NAMESIZE to 64. The call to strlcpy
on loginrec.c line 357 will truncate the 64th character. When a user logs in
with a username of exactly 64 characters, the following error message is
displayed:

login_init_entry: Cannot find
user "testlengthtestlengthtestlengthtestlengthtestlengthtestlengthtes"



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 952] login_init_entry: Cannot find user when username length is 64 [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=952





------- Additional Comments From brhamon@cisco.com 2004-11-12 04:58 -------
Created an attachment (id=739)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=739&action=view)
One-line change. Unit tested on Linux.

65 probably would have worked, I added 8 to keep the alignment of subsequent
fields.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.