且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java中的简单Kerberos客户端?

更新时间:2022-06-15 22:36:18

Oracle已使用Java的SaslClient 的示例。我不是Java程序员,但当我向曾经指出过这个问题的人时,他们能够很快地完成它。它可能仍然需要某处的conf文件(n.b. Kerberos使用环境变量,通常以KRB5_开头,知道在哪里查找这些文件)。另请注意,Kerberos本身不包含任何类型的传输 - 您的应用程序需要知道如何以服务器期望的方式发送和接收Kerberos有效负载(这取决于您尝试进行身份验证的服务器)。

Oracle has an example using Java's SaslClient. I'm not a Java programmer, but when I pointed this out once to someone who is, they were able to make it work pretty quickly. It may still require a "conf" file somewhere (n.b. Kerberos uses environment variables, often starting with KRB5_, to know where to look for such files). Also note that Kerberos itself does not include a transport of any kind--your app needs to know how to send and receive the Kerberos payloads the way the server expects (and this is different depending on the server you are trying to authenticate with).

编辑:你编辑了你的问题,所以这里有一个与Java中的SPNEGO相关的链接可能有些用处:
http://download.oracle.com/javase/6/docs/technotes/guides/security/ jgss / lab / part5.html

you edited your question, so here's a link related to SPNEGO in Java which might be of some use: http://download.oracle.com/javase/6/docs/technotes/guides/security/jgss/lab/part5.html