From: Andrew Tridgell <tridge@samba.anu.edu.au> To: remco@Cal010031.student.utwente.nl Subject: Re: resolving NetBIOS names with a dot Message-Id: <19980401135024Z12616808-17352+7218@samba.anu.edu.au> Date: Wed, 1 Apr 1998 23:50:11 +1000
> biereco:~$ smbclient -L "NET.BARF." -d2
uggh, what a name!
> While chasing the samba code for this peculiarity, I found the following:
yeah, Samba chops names at the first . and uses that for the netbios
name. I realise now that this is a really bad idea but when I put that
in I didn't really imagine anyone would use names with a . in them.
There are a few places in samba where this assumption is made. Someone
needs to go through and clean it up then test with a large bunch of
test cases.
Any volunteers?
> Now, my idea is to be a bit more prudent about names with a '.' in them.
> If it's a IP hostname, gethostbyname() will verify that and proceed as
> usual.. If it doesn't, assume it's a NetBIOS name with a '.' in it.
sounds sensible!
Cheers, Andrew