我已经在 Windows 域中获得授权,并且想要获取我的 Kerberos 票证的缓存。 从 Windows 命令行我可以获得票证的元数据(但不是缓存本身):
klist tickets
我需要缓存使用 php 函数 ldap_sasl_bind
,我必须在其中设置环境变量 KRB5CCNAME
以及缓存票证的路径。
有没有办法在 Windows 中获取 Kerberos 票证缓存(或缓存路径)?
环境:Windows 2008,IIS 7.5。
最佳答案
SAS,
查看 Microsoft 的 Tim Springston 撰写的以下文章--
查看和清除缓存的 Kerberos 票证
@ https://blogs.technet.microsoft.com/tspring/2014/06/23/viewing-and-purging-cached-kerberos-tickets/
在其中,他提供了两个 PowerShell 脚本,在运行时——
... a quick and easy way to list the cached tickets for all users on a computer. We are also left with a quick way to purge all cached tickets from a server while keeping the server available to provide services.
希望这篇文章至少能对您有所帮助。
最好的, -冲刺
关于php - 无法获取缓存的 Kerberos 票证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43937852/