cm_prepare_connection() & SMBSERVER Netbios query

Jeremy Allison jra at samba.org
Mon Dec 13 09:13:36 MST 2010


On Sun, Dec 12, 2010 at 05:16:56PM +0100, Volker Lendecke wrote:
> On Sun, Dec 12, 2010 at 03:45:29PM +0000, Dina_Fine at Dell.com wrote:
> > I am testing Windows 2008 AD functionality. And I noticed
> > that wbinfo -t (checking machine secret) sometimes fails.
> > The reason for that failure is that the Windows 2008 AD we
> > have, responses with negative answer for netbios query:
> > "*SMBSERVER<20> from c19<00>" with an error: "Called name
> > not present"
> >
> > I read in "Implementing CIFS" that it is a legal response
> > for such a query and that a server MAY not support this
> > query.
> 
> *SMBSERVER used to be the wildcard name every CIFS server
> should listen on. This was done because on the internet
> (Yes, the expansion of "CIFS" does contain that word)
> usually all you have is the IP of the target host. I would
> guess that the fact that W2K8 does not do this anymore is a
> simple bug.

The code in libsmbclient and called from smbclient actually
does a secondary name lookup and connects on that looked
up name#20 if *SMBSERVER returns "Called name not present".

I'll check if winbindd can be made to do the same, I thought
it did so already. Although Volker's patch is probably a
more elegant solution.

Jeremy.


More information about the samba-technical mailing list