[PATCH] samba.netbios module Python 3 compatible

Andrew Bartlett abartlet at samba.org
Tue Aug 8 04:55:39 UTC 2017

On Wed, 2017-08-02 at 11:23 +0200, Lumir Balhar wrote:
> 'addomain' is in $DOMAIN and '' is in $SERVER_IP.

Try using $SERVER not $DOMAIN.  $DOMAIN shouldn't work, it would be a
#1b and #1c name. 

>  From this point of view it seems that there is something wrong in
> the 
> testing environment and samba isn't providing netbios but when I try
> the 
> same query with nmblookup, it works.
> $ bin/nmblookup addomain
> addomain<00>
> I don't know what I am doing wrong. Could you please help me find
> out 
> why is there a difference between netbios queries from the Python
> module 
> and nmblookup tool?

They are backed by quite different codebases.  nmblookup4 which is no
longer installed would be a closer match. 

> Thank you. Have a nice day.
> Lumír

Sorry for the long delay and poor handling of this.  Your patches are
important to us.

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

More information about the samba-technical mailing list