[linux-cifs-client] Re: SMB support still missing?

Christopher R. Hertel crh at ubiqx.mn.org
Fri Feb 9 04:04:46 GMT 2007


Jan Engelhardt wrote:
:
> I'd just do this:
> 
>  (1) try 445/tcp
>  (2) try 139/tcp
>  (3) try 139/tcp with uppercase hostname (mount //hostname/share) as
>      default servernetbiosname

It's not enough, I'm afraid.

For #2 you still need to have a CALLED NAME in the Session Request message.
 Many systems (Samba in particular) don't really care what you put there but
others (mostly Windows flavors) are pickier.  I did some testing on this
many years ago but can't find the results.  Dang.

The hostname in //hostname/share may not be the name that the server is
expecting.  You've run across this yourself in a limited fashion due to the
upper/lower case issue.  It is possible, particularly on older Windows
platforms or in situations where DHCP is in use, that the DNS hostname and
NetBIOS base name will be different.  Since the two name types have
different meanings (and are technically in separate namespaces) this is not
as unusual as it sounds.

Chris -)-----

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the linux-cifs-client mailing list