Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java-written embedded Kerberos server for testing

is anyone aware of any embeddable Kerberos servers (KDC / KAdmin), which are written in Java and may run just within the JVM process (something like Hadoop minicluster or embedded LDAP servers)?

My goal it to let people run integ tests requiring Kerberos authentication without having to install local kerberos server/configure remote server and connection to it.

like image 396
Zorkus Avatar asked Jan 18 '13 21:01

Zorkus


1 Answers

You can give Apache Directory Server (http://directory.apache.org/) a try. It supports LDAP and Kerberos. See this example:

http://svn.apache.org/repos/asf/directory/apacheds/trunk/kerberos-test/src/test/java/org/apache/directory/server/kerberos/kdc/SaslGssapiBindITest.java

like image 124
kayyagari Avatar answered Oct 19 '22 22:10

kayyagari