使用Keytab解密Kerberos票

发布于 2025-02-12 01:51:10 字数 564 浏览 0 评论 0 原文

我正在寻找一个解密 kerberos票的示例,并使用 keytab file。 我遇到了库 kerb5 ,函数 krb5_server_decrypt_ticket_keytab()看起来非常适合工作。

我看到了几个示例(示例2 )但是我需要我的参数不明白: ccache 类型

。文件,但是即使在这些示例的帮助下,我也不确定如何验证机票并获取用户名。

什么是 ccache 用于使用?

我想对各种参数以及如何运行示例进行解释。

I'm looking for an example to decrypt Kerberos ticket and get the username using keytab file.
I came across the library kerb5, and the function krb5_server_decrypt_ticket_keytab() looks perfect for the job.

I saw a few examples (example 1, example 2) but they require parameters that I do not understand: ccache, type, etc.

I have 2 parameters: ticket(base64 encode) and keytab file, but even with the help of these examples I am not sure how to verify the ticket and get the username.

What is ccache is used for?

I would love an explanation of the various parameters and how the examples can be run.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文