SMB2 not used with \\server\share but with \\server.domain\share

Gerhard Wiesinger lists at wiesinger.com
Sun Jun 12 06:21:17 MDT 2011


Hello,

I tried to used Samba 3.6.0rc2 with the SMBV2 protocol on VPN WAN 
connections. First of all I had a quick success when sniffing with wireshark: SMB2 
packets!!! VPN connection is also cool :-)

But I also saw SMBv1 packets to the same server from the same client 
(Vista SP2).

I found the differences came reproduceable from the following on the same 
server:
\\server\share => SMBV1 used
\\server.domain\share => SMBV2 used

Negotiate Protocol Request:
\\server\share => Vista requests NO SMB 2.002 dialect, therefore SMBV1 is used
Same server:
\\server.domain\share => Vista requests SMB 2.002 dialect, therefore SMBV2 is used

Since in the media application \\server\share is configured I can not 
easily reconfigure to \\server.domain\share.

Any ideas how to use also \\server\share with SMBV2?

Domain controller is an "old" SMBV1 Linux machine.

Details about build and environment can be found below.

Thnx.

Ciao,
Gerhard

==================================================================
Compile instructions on Fedora FC13 x64, client Vista SP2 latest updates:

http://s390pkgs.fedoraproject.org/packages/samba/3.6.0/64pre1.fc15.1/src/samba-3.6.0-64pre1.fc15.1.src.rpm

yum install libacl-devel cups-devel ctdb-devel gtk2-devel libtalloc-devel libtdb-devel
diff -u samba-pre1.spec samba-3.6.0rc2.spec
--- samba-pre1.spec     2011-06-12 12:23:21.000000000 +0200
+++ samba-3.6.0rc2.spec 2011-06-12 12:52:02.000000000 +0200
@@ -3,7 +3,7 @@
  %define tdb_version 1.2.1
  %define talloc_version 2.0.1
  #%define pre_release %nil
-%define pre_release pre1
+%define pre_release rc2

  %define samba_release %{main_release}%{pre_release}%{?dist}

@@ -409,9 +409,11 @@
  #rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.so
  #rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/tdb.pc
  rm -f $RPM_BUILD_ROOT%{_bindir}/tdbbackup
+rm -f $RPM_BUILD_ROOT%{_bindir}/tdbrestore
  rm -f $RPM_BUILD_ROOT%{_bindir}/tdbdump
  rm -f $RPM_BUILD_ROOT%{_bindir}/tdbtool
  rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbbackup.8*
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbrestore.8*
  rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbdump.8*
  rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbtool.8*

rpmbuild -ba samba.spec

/etc/samba/smb.conf
# Global section
[global]
max protocol = SMB2

--
http://www.wiesinger.com/



More information about the samba-technical mailing list