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
> naming
> convention which kind of mirrors the OU hierarchy, so a college of
> natural sciencs machine in the Harris Lab would be called something
> like
> cns-khl-files. I've run into all kinds of undocumented issues when
> a
> windows computer name goes over 15 characters, so that's a secondary
> constraint.
>
> Those hyphenated names are a pain for the linux users to remember,
> so
> 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
> in
> /etc/sssd/sssd.conf:
>
> ad_hostname = cns-khl-files
>
> and then the name defined in /etc/hostname can be anything you like.
> I'm
> 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
AD.
But you will need to arrange SPNs matching the names that clients
connect to as with.
Andrew,
--
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
Solutions