[Samba] Computer host name vs. AD host name
abartlet at samba.org
Mon Mar 28 23:36:19 UTC 2022
On Mon, 2022-03-28 at 16:57 -0500, Patrick Goetz via samba wrote:
> Because of AD's per domain flat name space, we have a AD computer
> convention which kind of mirrors the OU hierarchy, so a college of
> natural sciencs machine in the Harris Lab would be called something
> cns-khl-files. I've run into all kinds of undocumented issues when
> windows computer name goes over 15 characters, so that's a secondary
> Those hyphenated names are a pain for the linux users to remember,
> what I've been doing is assigning a user friendly local hostname and
> creating a different name for AD. With sssd you can then set a value
> ad_hostname = cns-khl-files
> and then the name defined in /etc/hostname can be anything you like.
> guessing there's no way to do this with Samba, and I'm just going to
> have to reset the local hostname to match what AD expects to see?
Samba uses 'netbios name' in the smb.conf for it's name with respect to
But you will need to arrange SPNs matching the names that clients
connect to as with.
Andrew Bartlett (he/him) https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba
Samba Development and Support, Catalyst IT - Expert Open Source
More information about the samba