[Samba] smbclient returns error when NetBIOS disabled on Windows Server

Andrew Watkins andrew at dcs.bbk.ac.uk
Tue Apr 26 21:18:26 UTC 2016


Hello,

I have noticed that smbclient returns an error code when a windows 
server has disabled NetBIOS, but should it do this, if you know NetBIOS 
has been disabled. I think there should be a flag to indicate that you 
don't want to check port 139 (NetBIOS).

For example the following command which tries to connect to a Windows 
server with NetBIOS disabled returns an ERROR!

$ smbclient  -L //bloomsburyfs -U wstudent%password
Domain=[DCSNT] OS=[Windows Server 2008 R2 Enterprise 7601 Service Pack 
1] Server=[Windows Server 2008 R2 Enterprise 6.1]
         Sharename       Type      Comment
         ---------       ----      -------
         home            Disk      Student home drive share
         IPC$            IPC       Remote IPC
resolve_lmhosts: Attempting lmhosts lookup for name bloomsburyfs<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name bloomsburyfs<0x20>
resolve_wins: Attempting wins lookup for name bloomsburyfs<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name bloomsburyfs<0x20>
Connecting to 193.61.29.86 at port 139
Error connecting to 193.61.29.86 (Error 0)
Connection to bloomsburyfs failed (Error NT_STATUS_UNSUCCESSFUL)
NetBIOS over TCP disabled -- no workgroup available

But, it would be good if you could tell "smbclient" that you don't want 
it to check for NetBIOS which means you would not get an ERROR code.

For information I am having problems with Horde Project software (Web 
Application Framework using PHP) to access files on a windows server 
(gollem), since the smb driver checks the error code from "smbclient" 
before it continues.

Thanks,

Andrew

-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * formaly Solaris SIG *
* UKOUG Systems Event 2016 committee *
* UKOUG Tech committee *




More information about the samba mailing list