Has smbclient behavior changed from 2.2.8a to 3.0.0?
Andrew Bartlett
abartlet at samba.org
Tue Nov 4 04:47:06 GMT 2003
On Mon, Nov 03, 2003 at 10:11:09PM -0600, Christopher R. Hertel wrote:
> On Tue, Nov 04, 2003 at 12:46:52AM +0100, Simo Sorce wrote:
> > On Tue, 2003-11-04 at 00:27, Christopher R. Hertel wrote:
> > > Um...
> > >
> > > Note that you're talking to port 445!
> > >
> > > Port 445 doesn't do NetBIOS. No NetBIOS names, no NBT.
> > >
> > > Not sure why your system is talking to port 445, but it's the wrong port
> > > for the kind of query you are trying to do.
> > >
> > > Could be a bug in the way smbclient tries to connect to a remote host.
> >
> > Yes, afaik smbclient now tries 445 first by default.
>
> I'll have to file a bug report.
>
> > Probably we should find out a way to tell smbclient to not use 445 when
> > -L switch is issued and instead go directly to port 139.
>
> Yep.
>
> It appears that we can still get the list of shares via 445 (that is,
> NetShareEnum still works), but getting the list of workgroups and servers
> certainly won't.
I think this is already fixed in 3.0.1pre1, we make a fresh connection
to port 139 for this exact purpose.
Andrew Bartlett
More information about the samba-technical
mailing list