Created attachment 9005 [details]
Output from domain join
After joining a DC to a domain, it a number of SPNs are missing which in turn causes it to not function properly.
Host with missing SPNs after joining it to a domain:
[root@c64]/usr/local/samba/bin# ./samba-tool spn list c64-2$
User CN=C64-2,OU=Domain Controllers,DC=test,DC=la has the following servicePrincipalName:
Host with expected SPNs:
root@c64]/usr/local/samba/bin# ./samba-tool spn list c64$
User CN=C64,OU=Domain Controllers,DC=test,DC=la has the following servicePrincipalName:
Domain join command used:
samba-tool domain join test.la DC --realm=TEST.LA -Uadministrator
(In reply to CS from comment #0)
Hi, I believe it's worth noting this might happen if the df4bdd8c-abc7-4779-b01e-4dd4553ca3e9._msdcs.samdom.example.com, i.e. the objectGUID CNAME record is missing or points to a wrong host. See:
That record often has to be created manually due to bug #10928. I had exactly this problem after I accidentially pointed that entry to the _existing_ DC's hostname while creating it, but nevertheless using the newly joined DC's objectGUID. The SPNs are only created on the newly joined DC after Samba is started on it for the first time and are replicated over to the old DC shortly afterwards. But if the aforementioned DNS record is missing or erroneus, this replication fails.
(In my case I only realised my mistake after taking the newly added DC offline, deleting from the directory, and cleaning its metadata. After I rejoined it, but this time checking its syntax carefully, and afterwards everything worked.)