smbclient 3.5 can't connect to a Windows 7 server using NTLMv2 where smbclient 3.3, 3.4 and 3.6 can

Blohm, Guntram (I/FP-37, extern) extern.guntram.blohm at audi.de
Wed Aug 8 04:30:41 MDT 2012


Hi all,

problem is: company security says I have to use NTLMv2, so I sent "client NTLMv2 auth = yes" in smb.conf. No problem with RedHat 5.6 clients (which use smbclient 3.0.33); RedHat 6 clients (smbclient 3.5.4) stopped working with NT_STATUS_LOGON_FAILURE.

To make a long story short, I downloaded versions 3.4, 3.5 and 3.6 from enterprisesamba.org and tried each of them. Here's what happened:

[root at is0lavm59 bin]# pwd
/tmp/enterprisesamba.org/3.6/usr/bin
[root at is0lavm59 bin]# ./smbclient -V
Version 3.6.7
[root at is0lavm59 bin]# ./smbclient -d 10 -L audiinc11280932 -U audiinc11280932/smbtest%blaBla1234. 2> /tmp/smbclient-3.6.log

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remoteverwaltung
        B$              Disk      Standardfreigabe
        C$              Disk      Standardfreigabe
        D$              Disk      Standardfreigabe
        IPC$            IPC       Remote-IPC
        service42       Disk

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


[root at is0lavm59 bin]# cd ../../../3.5/usr/bin/
[root at is0lavm59 bin]# ./smbclient -V
Version 3.5.16
[root at is0lavm59 bin]# ./smbclient -d 10 -L audiinc11280932 -U audiinc11280932/smbtest%blaBla1234. 2> /tmp/smbclient-3.5.log
session setup failed: NT_STATUS_LOGON_FAILURE



[root at is0lavm59 bin]# cd ../../../3.4/usr/bin/
[root at is0lavm59 bin]# ./smbclient -V
Version 3.4.17
[root at is0lavm59 bin]# ./smbclient -d 10 -L audiinc11280932 -U audiinc11280932/smbtest%blaBla1234. 2> /tmp/smbclient-3.4.log

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remoteverwaltung
        B$              Disk      Standardfreigabe
        C$              Disk      Standardfreigabe
        D$              Disk      Standardfreigabe
        IPC$            IPC       Remote-IPC
        service42       Disk

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


Seems like a bug in 3.5 to me, which happens (at least) with  the 3.5.4-68.el6 that comes with RedHat 6, the 3.5.11-79.fc14 from Fedora 14, and the 3.5.16 from EnterpriseSamba.org. Any ideas, or any extra configuration that might geht 3.5 working?

I put the -d 10 log files, as well as tcpdump trace files, into the attached zip file.



Guntram Blohm


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smbclient.zip
Type: application/x-zip-compressed
Size: 25684 bytes
Desc: smbclient.zip
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120808/60f38027/attachment.bin>


More information about the samba-technical mailing list