Has smbclient behavior changed from 2.2.8a to 3.0.0?

Christopher R. Hertel crh at ubiqx.mn.org
Wed Nov 5 17:50:07 GMT 2003


On Wed, Nov 05, 2003 at 11:16:08AM -0600, Steven French wrote:
> 
> 
> 
> 
> >Forcing smbclient to connect to port 139
> >*should* fix the problem, since NetServerEnum2 is supported on port 139.
> >
> >If you grab a trace of smbclient 3.0.1, please verify that it is
> >connecting on 139 rather than 445.
> 
> This line of investigation based on the port number makes no sense.
> NetServerEnum2 (and the other RAP calls) should be the same on both 139 and
> 445 - at some level NetServerEnum2 is just an SMB transact and no one has
> theorized that basic SMB operations (other than session establishment) act
> differently on the two ports.   The 139 and 445 calls end up in the same
> place.   Other theories - security settings, restrictions on client
> computer name, restrictions on anonymous connections etc. seem more likely.

Huh?

The theory is based on empirical information.  The server is the same, the 
settings are the same, the difference is smbclient-2.2.8a vs. smbclient-3.0.0.

I also recall (but no longer have the configuration setup available to 
test this) that I did some poking around with NetServerEnum2 when I was 
working on my book.  My experience was that NetServerEnum2 does not work 
when called on port 445.  I certainly may have that wrong (I did not do 
extensive testing) but it is what I recall from that testing.

It also makes a bit of sense.  NetServerEnum2 references NBT-specific 
information.  If the server is running on port 445 only, then there would 
be no workgroup and no Browse List.  The Browse List is built using 
NetBIOS datagrams that exchange NetBIOS names and NetBIOS-based service 
information (the SMB services are not the only ones listed in the Browse 
List).  That information is not of use to NetBIOS-less CIFS, so the 
services offered on port 445 would have no reason to support 
NetServerEnum2.

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 samba-technical mailing list