The Samba-Bugzilla – Bug 5858
Username/Domainname truncated by login from WindowsMobile 5
Last modified: 2009-08-06 13:56:28 UTC
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.
Created attachment 3696 [details]
Log from samba, log level = 10
Created attachment 3697 [details]
log from wireshark
Created attachment 3698 [details]
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 ?
"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' ?
Bernd, could you please reply to the last comment ?
(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'