Skip to content

Commit

Permalink
ZOOKEEPER-2689: Fix Kerberos Authentication related test cases
Browse files Browse the repository at this point in the history
Presently 'MiniKdc.java' uses Apache Kerby which has a build requirement of jdk1.7+, http://directory.apache.org/kerby/developer-guide.html]. Since branch-3.4.x support Java 1.6 or higher, Apache Kerby binding is causing trouble.

I've tried an attempt to rewrite MiniKdc.java test using old way of Kerberos implementation provided by Apache Directory Server project, org.apache.directory.* packages. Please refer MiniKdc implementation of Hadoop, trunk branch git hash revision 42e3a805117ff7cb054c2442f7b0e0cc54be63ad

Author: Rakesh Radhakrishnan <rakeshr@apache.org>

Reviewers: Mohammad Arshad <arshad@apache.org>

Closes #170 from rakeshadr/ZK-2689
  • Loading branch information
rakeshadr authored and arshadmohammad committed Feb 13, 2017
1 parent e51dbeb commit e8247ee
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 127 deletions.
56 changes: 32 additions & 24 deletions ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,30 +78,38 @@
<dependency org="commons-io" name="commons-io" rev="2.4"
conf="test->default"/>

<dependency org="org.apache.kerby" name="kerb-simplekdc" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerby-config" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-core" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-server" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-common" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-admin" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-identity" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-client" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-util" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerb-crypto" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerby-util" rev="1.0.0-RC2"
conf="test->default"/>
<dependency org="org.apache.kerby" name="kerby-asn1" rev="1.0.0-RC2"
conf="test->default"/>

<!-- Apache directory server project, org.apache.directory.* packages for miniKdc tests -->
<dependency org="org.apache.directory.server" name="apacheds-core-api" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-interceptor-kerberos" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-protocol-shared" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-protocol-kerberos" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-ldif-partition" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-mavibot-partition" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.api" name="api-all" rev="1.0.0-M20" conf="test->default">
<exclude org="xml-apis" name="xml-apis"/>
<exclude org="xpp3" name="xpp3"/>
<exclude org="dom4j" name="dom4j"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-jdbm-partition" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>
<dependency org="org.apache.directory.server" name="apacheds-protocol-ldap" rev="2.0.0-M15" conf="test->default">
<exclude org="org.apache.directory.api" name="api-ldap-schema-data"/>
</dependency>

</dependencies>

</ivy-module>
Loading

0 comments on commit e8247ee

Please sign in to comment.