Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

425 views
Skip to first unread message

Andrew Watkins

unread,
Apr 26, 2016, 5:50:02 PM4/26/16
to
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 *


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Jeremy Allison

unread,
Apr 29, 2016, 5:20:04 PM4/29/16
to
The code in 4.4.x is quite sophisticated, in that is by
default tries port 445 and then 5msecs later tries 139.

So it should be trying 445 by default. What is your
smb.conf set to, and can you post a debug level 10 log
from this smbclient command ?

Andrew Watkins

unread,
Apr 29, 2016, 5:40:04 PM4/29/16
to
I solved the problem a couple of hours ago.

Well I am using Samba 3.6.x version and after I installed Samba 4.4.x it
worked fine.
Guess I need to upgrade our systems, but using samba that comes with
Solaris 11.

Thanks for now.

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 *

Jeremy Allison

unread,
Apr 29, 2016, 5:50:02 PM4/29/16
to
On Fri, Apr 29, 2016 at 10:29:15PM +0100, Andrew Watkins wrote:
> >>want it to check for NetBIOS which means you would not get an ERROR
> >>code.
> >The code in 4.4.x is quite sophisticated, in that is by
> >default tries port 445 and then 5msecs later tries 139.
> >
> >So it should be trying 445 by default. What is your
> >smb.conf set to, and can you post a debug level 10 log
> >from this smbclient command ?
>
> I solved the problem a couple of hours ago.
>
> Well I am using Samba 3.6.x version and after I installed Samba
> 4.4.x it worked fine.
> Guess I need to upgrade our systems, but using samba that comes with
> Solaris 11.
>
> Thanks for now.

Oh great, glad to see we occasionally make progress :-).

But people are still using Solaris ???? For what ?

(Runs and hides from the oncoming flamewar... :-) :-).
0 new messages