提取java虚拟机的用户上下文
jvm 正在使用某个用户的安全上下文运行。
在 Windows 上,有时在 Linux 上,用户将有一个 kerberos tgt。是否可以提取运行 jvm 的用户的安全上下文和 kerberos tgt。
The jvm is running with a security context of some user.
On windows and sometimes on linux, the user will have a kerberos tgt. Is it possible to extract the security context and the kerberos tgt of the user, whose priviliges the jvm is running with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。根据您的具体设置,Kerberos 凭据通常存储在“keytab”文件中。这个 keytab 可以被用户读取(显然),因此也可以被 Java 读取。
因此,即使缺少 Java Kerberos 特定功能(顺便说一下,该功能确实存在),仍然可以获得用户的凭据。
Yes, it is. The Kerberos credentials are, depending on your exact setup, generally stored in a "keytab" file. This keytab is readable by the user (obviously) and, thus, by Java.
So, even in the absence of the Java Kerberos-specific functionality (which does, by the way, exist), it would still be possible to get the user's credentials.