resolving NetBIOS names with a dot

Luke Kenneth Casson Leighton lkcl at switchboard.net
Wed Apr 1 19:26:33 GMT 1998


On Wed, 1 Apr 1998, Andrew Tridgell wrote:

> > 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.

i added code in BRANCH_NTDOM smbclient with a #ifdef to truncate or not
truncate at the ".".

the reason this is done in the first place is because that is what
microsoft chose to do.

luke



More information about the samba-technical mailing list