Kerberos Cached Ticket

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.

+4
source share
2 answers

I found the answer to my question by deleting the krb5cc * file in the folder with my username under C: \ Users. File was created by kinit.exe.

+5
source

Source: https://habr.com/ru/post/1380004/


All Articles