I went gray working through this about 5 years ago.
Here were my notes from a working configuration:
OK, I executed the following commands:
setspn -S HTTP/ssost...@REALM.CONTOSO.COM casuser.kauth2
setspn -S HTTP/ssostaging.rea...@REALM.CONTOSO.COM casuser.kauth2
ktpass.exe /out casuser.kauth2.keytab /princ HTTP/ssostaging.rea...@REALM.CONTOSO.COM /mapuser casuser.kauth2 /pass "6Sw]kZ~+eruFbmy" /ptype KRB5_NT_PRINCIPAL /crypto AES256-SHA1 /kvno 0 /target dc4.realm.contoso.com
After you update your “stuff” your kinit should look like this:
kinit -k -t casuser.kauth2.keytab HTTP/ssostaging.rea...@REALM.CONTOSO.COM "6Sw]kZ~+eruFbmy"
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CADy1Ce4D8Qmssh-sxdfq7i5dCmpm-heF61_1WB9MR-4E-EtmZQ%40mail.gmail.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/96fdcc67172749a39ea56533b357447c%40smithcons.com.
Yes, the keytab needs to go on all DCs. It is a manual process (this is why you use AD and not MIT Kerberos)!
If the keytab gets deleted then you can’t open new authenticated connections.
I used the MIT Kerberos documents extensively and the Java GSSAPI/spnego documents.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Kurt Buff
Sent: Wednesday, December 1, 2021 5:50 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Questions around generating a keytab file
Thanks for this. If we have further problems I'll use your example as a tutorial.
Questions regarding the keytab file:
- We generated it on one of the DCs, and it landed in C:\Windows\System32. Do we place that file on all of the DCs? If yes, that seems like a fairly manual process. I'll have to remember to update the DCs when I replace the 2012R2 box.
- Also, do you know what happens if the keytab file is deleted?
Are there any more comprehensive docs for KRB in general?
Regardless, I think I solved my problem:

To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CADy1Ce7vopQdShJvQpKyXdEa8%2BqXFy-JpWWGHT9Xm2E0sjUA2w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/c03d7be79f3143ca90de7930e425f88d%40smithcons.com.