【发布时间】:2011-12-23 16:12:34
【问题描述】:
我在 Windows 7(64 位)上,我创建了一个简单的应用程序来计算实现 PrivilegedAction 的类的 run 方法中的文件。以下是我的 jaas.conf 文件:
计数文件 { com.sun.security.auth.module.Krb5LoginModule 需要 useTicketCache=true 调试=真; };我收到以下消息。
Debug 为 true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache 为 null isInitiator true KeyTab 为 null refreshKrb5Config 为 false principal 为 null tryFirstPass 为 false useFirstPass 为 false storePass 为 false clearPass 为 false 从缓存中获取 TGT 凭证不再有效 校长为空 票证缓存中的空凭据然后程序会抛出 LoginException,但是如果我在 windows 命令行上执行 kinit.exe,那么它可以给我计数。
我还将以下注册表值设置为 1:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters 值名称:AllowTGTSessionKey 值类型:REG_DWORD 值:1您能告诉我如何访问缓存在系统上的 kerberos 票证吗?
谢谢。
【问题讨论】:
-
在 Windows 2008 服务器上同样的问题