Bug 5858 - Username/Domainname truncated by login from WindowsMobile 5
Summary: Username/Domainname truncated by login from WindowsMobile 5
Status: NEW
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: User & Group Accounts (show other bugs)
Version: 3.2.3
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-29 02:32 UTC by Bernd Kloss
Modified: 2009-08-06 13:56 UTC (History)
0 users

See Also:


Attachments
Log from samba, log level = 10 (25.27 KB, application/octet-stream)
2008-10-29 02:36 UTC, Bernd Kloss
no flags Details
log from wireshark (6.67 KB, application/octet-stream)
2008-10-29 02:36 UTC, Bernd Kloss
no flags Details
samba-log (159.10 KB, application/octet-stream)
2008-10-29 02:39 UTC, Bernd Kloss
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Kloss 2008-10-29 02:32:54 UTC
Debian Lenny
Windows Mobile 5

Log in from PDA not possible.
Mal formed Packet.
Trying to login from PDA as user bk for domain azimmer the last letters from user- and domainname (b @ azimme)are missing if looking up the log-files. 
Used to work under Etch. Unfortunately I cannot reconstruct that, since I upgraded to Lenny.
Comment 1 Bernd Kloss 2008-10-29 02:36:24 UTC
Created attachment 3696 [details]
Log from samba, log level = 10
Comment 2 Bernd Kloss 2008-10-29 02:36:54 UTC
Created attachment 3697 [details]
log from wireshark
Comment 3 Bernd Kloss 2008-10-29 02:39:02 UTC
Created attachment 3698 [details]
samba-log
Comment 4 Jeremy Allison 2008-11-25 18:59:40 UTC
Wow, looking at the capture file this is a very strange NTLMSSP packet.
The Domain name is sent as 'AZIMMER ' (note the space at the end) with length 8.
The user name is sent as 'bk' with length 2.

My guess is that Samba is truncating the string using length 2 and expecting a terminating null. We're getting away with it in the domain name as the last byte is a zero.

Ok, there's a fix that recently went into the 3.2-test git tree that would cope with a non-null terminated string pull (for file serving). I think this may fix this bug. Is it possible you can test that tree ? Can you build from source ?

Jeremy.
Comment 5 Jeremy Allison 2008-11-25 19:01:31 UTC
"We're getting away with it in the domain name as the last
byte is a zero."

I meant we're getting away with it in the domain name as the last byte is a space, which we were overwriting with a zero. (Not in the current code).

What is the actual Domain name here 'AZIMMER ' or 'AZIMMER' ?

Jeremy
Comment 6 Guenther Deschner 2009-08-06 09:23:05 UTC
Bernd, could you please reply to the last comment ?
Comment 7 Bernd Kloss 2009-08-06 13:56:28 UTC
(In reply to comment #6)
> Bernd, could you please reply to the last comment ?
> 
Sorry for my silence, but I was not very successful trying to build from source.

The correct domain name is 'AZIMMER'
The username is 'BK'
Regards
Bernd