Tompkins, Michael
2015-Jan-28 19:38 UTC
[Samba] Samba 4.0.7 doesn't work with Russian credentials
I am trying to use smbclient with a Russian login and it refuses the connection. This is with a smbclient compiled for our printers. If I use the linux version, downloaded from the samba site, it works correctly. I'm thinking it's how I have it configured, but I can't tell from the wireshark trace (included). Any help where I would look specifically in the code would be appreciated. Thanks, Mike
Jeremy Allison
2015-Jan-29 00:13 UTC
[Samba] Samba 4.0.7 doesn't work with Russian credentials
On Wed, Jan 28, 2015 at 07:38:26PM +0000, Tompkins, Michael wrote:> I am trying to use smbclient with a Russian login and it refuses the connection. This is with a smbclient compiled for our printers. If I use the linux version, downloaded from the samba site, it works correctly. I'm thinking it's how I have it configured, but I can't tell from the wireshark trace (included). Any help where I would look specifically in the code would be appreciated.ENOWHERENEARENOUGHINFORMATIONTOBEABLETOEVENSTARTTOHELP :-). How does it 'refuse the connection' ? What server are you connecting to ? Does the username or password contain cyrillic characters ? I could go on, but I'm sure you get the idea :-). Jeremy.
Tompkins, Michael
2015-Jan-29 12:47 UTC
[Samba] Samba 4.0.7 doesn't work with Russian credentials
Sorry about the lack of info. So in the wireshark trace, our printer smbclient 4.0.7 sends a Unicode value in Russian of ???? with a password of ????123. The server rejects the login attempt with STATUS_LOGON_FAILURE. The second attempt is with the linux version smbclient 4.0.7, and the same credentials to the same server work. The only thing I see different in the requests are the flags sent: First trace: Flags: 1 Canonicalized Pathnames Flags2: 1 Long names used 0 Security Signatures 1 Extended Attributes Capabilities: 0 Large Files 0 Dfs So the user and password are being sent via Unicode. To reproduce, the letters are just "asdf" on a Russian keyboard (I use winrus.com/keyboard.htm to type and then copy). Does this help ? Thanks, - Mike ? ? -----Original Message----- From: Jeremy Allison [mailto:jra at samba.org] Sent: Wednesday, January 28, 2015 7:14 PM To: Tompkins, Michael Cc: samba at lists.samba.org; USA Xerox Samba Subject: Re: [Samba] Samba 4.0.7 doesn't work with Russian credentials On Wed, Jan 28, 2015 at 07:38:26PM +0000, Tompkins, Michael wrote:> I am trying to use smbclient with a Russian login and it refuses the connection. This is with a smbclient compiled for our printers. If I use the linux version, downloaded from the samba site, it works correctly. I'm thinking it's how I have it configured, but I can't tell from the wireshark trace (included). Any help where I would look specifically in the code would be appreciated.ENOWHERENEARENOUGHINFORMATIONTOBEABLETOEVENSTARTTOHELP :-). How does it 'refuse the connection' ? What server are you connecting to ? Does the username or password contain cyrillic characters ? I could go on, but I'm sure you get the idea :-). Jeremy.