Hi Rowland,
I didn't want to put the actual names in the email, so I'll put the
pertinant part of [global] with the name slightly changed
[global]
?? ?netbios name = NC1
?? ?realm = PETERCARLSON.LOCAL
?? ?server role = active directory domain controller
?? ?server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
winbindd, ntp_signd, kcc, dnsupdate
?? ?workgroup = SPC
?? ?idmap_ldb:use rfc2307 = yes
home folders are getting created as : /home/peter at petercarlson.local and
not peter at SPC
On 10/13/22 08:32, Rowland Penny via samba wrote:>
>
> On 13/10/2022 16:09, Peter Carlson via samba wrote:
>> I have a domain of somereallylongname at domain with a netbios name of
>> SHORT.
>
> When you say 'domain', do you mean the dns domain ? because that
isn't
> a valid dns domain, also, when you say netbios domain, do you mean the
> netbios domain name or the the netbios name aka the short hostname in
> capitals.
>
> ?I would like the user dirs on linux to be created as
>> /home/%U at SHORT, but they keep getting created as %U at long_name
>>
>> I cant seem to find the parameter that allows %D to be set as netbios
>> shortname
>
> Looks like you mean the computers name in capitals, in which case
'%h'
> might be what you are looking for, but I think this will be in lowercase.
>
> '%D' is always the netbios domain name (aka workgroup) in capitals.
>
> Rowland
>