Kerberos Cached Ticket

别等时光非礼了梦想. 提交于 2019-12-10 16:00:10

问题


I am on windows 7 (64-bit) and I have created a simple app to count files in the run method of a class that implements PrivilegedAction. following is my jaas.conf file:

CountFiles {
    com.sun.security.auth.module.Krb5LoginModule required 
    useTicketCache=true
    debug=true;
};

I am getting the following message.

Debug is  true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config 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 the program throws LoginException after that, however if I execute the kinit.exe on windows command line then it is able to give me the count.

I have also setup the following registry value to 1:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters
Value Name: AllowTGTSessionKey
Value Type: REG_DWORD
Value: 1

Can you please tell how to access the kerberos tickets cached on the system?

Thank you.


回答1:


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




回答2:


I believe klist is the way to go



来源:https://stackoverflow.com/questions/8037715/kerberos-cached-ticket

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!