Bug 16005 - "net ads join" creates HOST/fqdn principals instead of host/fqdn - breaking unix compatibility..
Summary: "net ads join" creates HOST/fqdn principals instead of host/fqdn - breaking u...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.23.5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Pavel Filipenský
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-20 18:30 UTC by Peter Eriksson
Modified: 2026-02-24 09:55 UTC (History)
2 users (show)

See Also:


Attachments
Patch to create host<fqdn> principcals instead of HOST<fqdn> (1.68 KB, patch)
2026-02-20 18:30 UTC, Peter Eriksson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eriksson 2026-02-20 18:30:04 UTC
Created attachment 18859 [details]
Patch to create host<fqdn> principcals instead of HOST<fqdn>

Here's a patch that "fixes" this problem. It shouldn't be a problem if net ads join tills the AD to create host/<fqdn> since AD is case insensitive, but Unix utilities are not but there might be something I'm not aware of (perhaps make it selectable with some command line option). Anyway, it works for me... 

For an example of a unix tool that breaks if /etc/krb5.keytab contains HOST/<fqdn> is pam_krb5 (on FreeBSD)
Comment 1 Douglas Bagnall 2026-02-20 19:22:13 UTC
hmm, we keep not quite fixing this class of problem.

https://bugzilla.samba.org/show_bug.cgi?id=15759#c3 is relevant. Also, e.g. bug 9699 and bug 3671.