I am on Windows 7 (64-bit) and I created a simple application for counting files in the run method of a class that implements PrivilegedAction. The following is my jaas.conf file:
CountFiles {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache = true
debug = true;
};
I get the following message.
Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5 Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
Credentials are no longer valid
Principal is null
null credentials from Ticket Cache
and after that the program throws a LoginException, however, if I run kinit.exe on the Windows command line, then it will be able to give me an account.
I also have the following registry value set: 1:
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ Lsa \ Kerberos \ Parameters
Value Name: AllowTGTSessionKey
Value Type: REG_DWORD
Value: 1
Can you tell me how to access the caches stored in the cache on the system?
Thanks.
source share