Has smbclient behavior changed from 2.2.8a to 3.0.0?
Christopher R. Hertel
crh at ubiqx.mn.org
Tue Nov 4 23:14:13 GMT 2003
On Tue, Nov 04, 2003 at 02:51:58PM -0800, David Wuertele wrote:
> CH> Try adding "-p 139" to the command line and see if that fixes it.
>
> Nope.
Weird.
3.0.0 tries connecting on port 445. Windows does not support the
NetServerEnum2 call (the one that returns the servers and workgroups) on
that port (as I recall). Forcing smbclient to connect to port 139
*should* fix the problem, since NetServerEnum2 is supported on port 139.
Dang.
If you grab a trace of smbclient 3.0.9, please verify that it is
connecting on 139 rather than 445.
Thanks.
Chris -)-----
PS. As Abartlet reported, this should already be fixed for 3.0.1.
> # ~/samba-3.0.0/source/bin/smbclient -s /etc/samba/smb.conf -p 139 -I 192.168.5.211 -L //b1-xp-1
> Password:
>
> Sharename Type Comment
> --------- ---- -------
> IPC$ IPC Remote IPC
> My Music Disk
> ADMIN$ Disk Remote Admin
> C$ Disk Default share
>
> Server Comment
> --------- -------
>
> Workgroup Master
> --------- -------
> # /usr/bin/smbclient -s /etc/samba/smb.conf -p 139 -I 192.168.5.211 -L //b1-xp-1
> added interface ip=192.168.5.1 bcast=192.168.5.255 nmask=255.255.255.0
> Password:
> Domain=[WG1] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
>
> Sharename Type Comment
> --------- ---- -------
> IPC$ IPC Remote IPC
> My Music Disk
> ADMIN$ Disk Remote Admin
> C$ Disk Default share
>
> Server Comment
> --------- -------
> B1-XP-1 b1 XP 1
> B1-XP-2 b1-XP-2
> B2-XP-1 b2 XP 1
> B2-XP-2 b2-XP-2
> B3-XP-1 b3-XP-1
> B3-XP-2P b3-XP-2p
> B4-XP-1 b4-XP-1
> B4-XP-2 b4-XP-2
> B5-XP-1 b5-XP-1
> B5-XP-2 b5-XP-2
> B6-XP-1 b6-XP-1
> B6-XP-2 b6-XP-2
>
> Workgroup Master
> --------- -------
> ROKU ADVENTURE
> WG1 B5-XP-1
> WORKGROUP G4-BOX-1
> #
>
--
"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