有没有人知道有没有嵌入式Kerberos服务器(KDC / KAdmin),它们是用Java语言编写的,可以在JVM进程中运行(类似Hadoop minicluster或嵌入式LDAP服务器)?
我的目标是让人们运行需要Kerberos身份验证的integ测试,而不必安装本地kerberos服务器/配置远程服务器并连接到它。
发布于 2013-01-19 12:53:09
您可以尝试一下Apache Directory Server (http://directory.apache.org/)。它支持LDAP和Kerberos。请参阅此示例:
http://svn.apache.org/repos/asf/directory/apacheds/trunk/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java
发布于 2013-01-19 06:04:50
一个完全解耦的系统是必要的。
LDAP服务器根本帮不上您的忙,因为它们对GSS-API和Kerberos毫无作用。SASL通过将auth委托给下一个可用的KDC来完成所有工作。
您需要KDC和DNS服务器。你可以在一台机器上尝试Samba4,设置另一台加入域的机器。
看起来你可以让Apache DS模仿一个KDC:http://directory.apache.org/apacheds/configuration/ads-2.0-configuration.html
发布于 2016-11-22 01:46:17
我为类似的目的编写了一个嵌入式LDAP,您也可以将其用于Kerberos测试,特别适用于测试Hadoop Kerberos测试之类的情况。
https://github.com/krishdey/EmbeddedLdapKDC
您还可以查看用于编写嵌入式JUnit测试https://github.com/krishdey/EmbeddedLdapKDC/blob/master/EmbeddedLdapKDC/src/test/java/com/krish/ead/server/KerberosLdapIntegrationTest.java的类
可能对你有用。
https://stackoverflow.com/questions/14408093
复制相似问题