Re: resolving NetBIOS names with a dot

Luke Kenneth Casson Leighton (lkcl@switchboard.net)
Wed, 1 Apr 1998 20:26:33 +0100 (BST)

Date:	Wed, 1 Apr 1998 20:26:33 +0100 (BST)
From:	Luke Kenneth Casson Leighton <lkcl@switchboard.net>
To:	Multiple recipients of list <samba-technical@samba.anu.edu.au>, Andrew Tridgell <tridge@samba.anu.edu.au>
Subject: Re: resolving NetBIOS names with a dot
In-Reply-To: <19980401135024Z12616808-17352+7218@samba.anu.edu.au>

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