I recently asked a question about some problems I was having getting MIT Kerberos to work nicely with Microsoft's LSA credentials cache.
I was told that setting the registry key AllowTGTSessionKey
should fix the problem.
However, I'm still having problems, and now I dug a bit deeper.
Running klist tgt
(using the klist provided by Microsoft in \windows\system32
), it shows, among all the other output, this:
Session Key : KeyType 0x17 - RSADSI RC4-HMAC(NT)
: KeyLength 16 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
So, the session key is still blanked out, even though that was the problem the registry key mentioned above was supposed to solve.
So which other conditions might lead to the session key being blanked out?
I've tried with all sorts of user accounts now (domain admins, domain users, with and without UAC enabled), and nothing seems to make a difference.
So, does anyone know what the problem might be? Or know of a solution (and/or ugly hacky workaround)
An authentication ticket, also known as a ticket-granting ticket (TGT), is a small amount of encrypted data that is issued by a server in the Kerberos authentication model to begin the authentication process.
The reply-encrypting key: the KDC uses this to encrypt the reply it sends to the client. For AS replies, this is a long-term key of the client principal. For TGS replies, this is either the session key of the authenticating ticket, or a subsession key.
You can implement Kerberos authentication using an API for interacting with the Local Security Authority (LSA) service — a system service for creating a logon session on a local computer. This method can be used, for instance, with Credential Provider features for logging in to the system without entering a password.
Ok, looks like I have the (rather embarassingly silly) answer.
The registry key in question (AllowTGTSessionKey
) is only read by Windows at startup.
So after setting it.... you have to reboot!
And then you get a valid session key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With