我正在寻找一个解密 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.
发布评论