Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Join a host PC without having to reduce the characters (NetBIOS).

1,148 views
Skip to first unread message

José Augusto Carvalho Filho

unread,
Oct 23, 2015, 10:10:06 AM10/23/15
to
Hello everybody.I'm in trouble the following problem:
Our netbios name can be at most 15 chars long, "AD-CLIENT-CENTOS" is 17 chars longInvalid configuration. Exiting ....Failed to join domain: The format of the specified computer name is invalid.
How could join Join a host PC without having to reduce the characters (NetBIOS).?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Rowland Penny

unread,
Oct 23, 2015, 10:20:04 AM10/23/15
to
On 23/10/15 14:45, José Augusto Carvalho Filho wrote:
> Hello everybody.I'm in trouble the following problem:
> Our netbios name can be at most 15 chars long, "AD-CLIENT-CENTOS" is 17 chars longInvalid configuration. Exiting ....Failed to join domain: The format of the specified computer name is invalid.
> How could join Join a host PC without having to reduce the characters (NetBIOS).?

This is a limitation from windows, you cannot have a netbios name that
is longer than 15 characters, so if you must have the fact that it is in
AD and is a client running centos as the short hostname, then try
'adclientcentos' instead

Rowland

Guilherme Boing

unread,
Oct 23, 2015, 1:00:05 PM10/23/15
to
"... so if you must have the fact that it is in AD and *is a client running
centos as the short hostname, then try 'adclientcentos' instead*"

also, can't you change the name to something less than 15 chars ?

On Fri, Oct 23, 2015 at 2:45 PM, José Augusto Carvalho Filho <
jose....@hotmail.com.br> wrote:

> Complementing my problem is with linux stations.

José Augusto Carvalho Filho

unread,
Oct 23, 2015, 1:00:05 PM10/23/15
to
Complementing my problem is with linux stations.

From: jose....@hotmail.com.br
To: sa...@lists.samba.org
Subject: Join a host PC without having to reduce the characters (NetBIOS).
Date: Fri, 23 Oct 2015 16:45:05 +0300




José Augusto Carvalho Filho

unread,
Oct 23, 2015, 1:20:03 PM10/23/15
to
Thanks for listening. I appreciate your understanding. I need to know if the samba supports customers with but 15 characters. In exeplo using was illustrative. I have clients with but of 15 characters. Ex: Apocalypse-master
From: jose....@hotmail.com.br
To: sa...@lists.samba.org
Subject: Join a host PC without having to reduce the characters (NetBIOS).
Date: Fri, 23 Oct 2015 16:45:05 +0300




Rowland Penny

unread,
Oct 23, 2015, 1:30:03 PM10/23/15
to
On 23/10/15 18:13, José Augusto Carvalho Filho wrote:
> Thanks for listening. I appreciate your understanding. I need to know if the samba supports customers with but 15 characters. In exeplo using was illustrative. I have clients with but of 15 characters. Ex: Apocalypse-master
> From: jose....@hotmail.com.br
> To: sa...@lists.samba.org
> Subject: Join a host PC without having to reduce the characters (NetBIOS).
> Date: Fri, 23 Oct 2015 16:45:05 +0300
>
>
>
>
> Hello everybody.I'm in trouble the following problem:
> Our netbios name can be at most 15 chars long, "AD-CLIENT-CENTOS" is 17 chars longInvalid configuration. Exiting ....Failed to join domain: The format of the specified computer name is invalid.
> How could join Join a host PC without having to reduce the characters (NetBIOS).?

You *cannot* have a netbios name with more than 15 characters.

This limitation comes from windows.

Rowland

Sketch

unread,
Oct 23, 2015, 1:40:03 PM10/23/15
to
On Fri, 23 Oct 2015, José Augusto Carvalho Filho wrote:

> Hello everybody.I'm in trouble the following problem:
> Our netbios name can be at most 15 chars long, "AD-CLIENT-CENTOS" is 17 chars longInvalid configuration. Exiting ....Failed to join domain: The format of the specified computer name is invalid.
> How could join Join a host PC without having to reduce the characters (NetBIOS).?

You don't have to rename your machine, you can set a shorter name in
smb.conf:

[global]
netbios name = shortname

It's too bad samba doesn't auto-shorten hostnames like Windows does,
though being able to name them yourself gives you more control on how the
names get shortened. One downside to this is that since Kerberos is DNS
based, if you use Kerbros credentials for authentication between machines,
you will need to put a CNAME in DNS for the short hostname pointing to the
real hostname.

I'm curious if NetBIOS names are actually required by AD, or are just
there by default for compatibility with older versions of Windows. If the
later, it would be nice if it was possible to disable them completely in
Samba.

José Augusto Carvalho Filho

unread,
Oct 23, 2015, 2:00:04 PM10/23/15
to
Good afternoon even disabling the netbios "disable = yes netbios" he continues using the netbios.

Reindl Harald

unread,
Oct 23, 2015, 2:10:04 PM10/23/15
to
just use shorter names
all samba is about is compatibility with windows

"disable = yes netbios" is nonsense
"disable netbios = yes" is what you want

ANYWAYS: don't user names longer then 15 chars
signature.asc

Rowland Penny

unread,
Oct 23, 2015, 2:10:04 PM10/23/15
to
On 23/10/15 18:52, José Augusto Carvalho Filho wrote:
> Good afternoon even disabling the netbios "disable = yes netbios" he continues using the netbios.
>

OK, look *you cannot have a hostname that is longer than 15 characters*

This is *not* a Samba limitation, it a Microsoft Windows limitation, see
here:

https://support.microsoft.com/en-us/kb/909264

Under the heading:

DNS host names

There is this:

Note Windows does not permit computer names that exceed 15 characters,
and you cannot specify a DNS host name that differs from the NETBIOS
host name.

Rowland

José Augusto Carvalho Filho

unread,
Oct 23, 2015, 3:10:04 PM10/23/15
to

How to own DC authenticate either locally or via SSH in their accounts?

José Augusto Carvalho Filho

unread,
Oct 23, 2015, 3:20:04 PM10/23/15
to

Rowland Penny

unread,
Oct 23, 2015, 3:20:04 PM10/23/15
to
On 23/10/15 20:04, José Augusto Carvalho Filho wrote:
> How to own DC authenticate either locally or via SSH in their accounts?
>
>

I 'think' you mean: howto authenticate locally or by using SSH.

You are going to have to give us a bit more info. Are you using AD ? are
you trying to log into a DC or a domain member.

Can you post your smb.conf.

I would also suggest you find someone who can speak English, rather than
relying on Google translate.

Rowland

mathias dufresne

unread,
Oct 26, 2015, 10:00:04 AM10/26/15
to
You have to configure PAM.

2015-10-23 21:17 GMT+02:00 José Augusto Carvalho Filho <
jose....@hotmail.com.br>:

L.P.H. van Belle

unread,
Oct 26, 2015, 10:10:05 AM10/26/15
to
Hint..

https://wiki.samba.org/index.php/OpenSSH_Single_sign-on


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens mathias dufresne
> Verzonden: maandag 26 oktober 2015 14:52
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] How to own DC authenticate either locally or via
0 new messages