LDAP Realm Module for Tomcat 5.5 for JDK versions 1.5 and later

With the introduction of the jdk/sdk version 1.4 from Sun, Sun has included the SSL libraries in the base jdk. With the addition of these libraries to the SDK, they made some changes to the names of handlers. As a result of this you will need to download the correct ldaprealm file and associated pieces based on which JDK you will be using with Tomcat. The ldap jdk is also dependent on the jdk version, but do not worry it is available below for download.

For more information on the LDAP SDK etc visit http://www.mozilla.org/directory

It is highly recommended that you use version 4.17 or later of the ldap libraries. They include support for every robust connection handling that will virtually eliminate connection loss with a directory server.

Here are the recommended installation instructions for the LDAP Realm Module and associated files:

  1. Place ldaprealm.jar in $CATALINA_HOME/server/lib
  2. Place ldapjdk.jar in $CATALINA_HOME/common/lib
  3. Modify the server.xml file to support the LDAPRealm Mbeans (if wanted)

The jnet.jar, jsse.jar, jcert.jar files are needed for ldap SSL communications only. If you are not using SSL to do ldap connections then you do not need these.

For convenience, I have placed all the files mentioned above (except the SSL libraries from Sun below).

Get the LDAP jdk jar file version 417 for jdk 1.4 and higher here. (right click this link and do a save as)

Download the LDAPRealm Version 1.5 jar file ldaprealm.jar (right click this link and do a save as)

Documentation on the module and the parameters is here.

Source code is here (right click this link and do a save as).

Download a complete compiled copy of the LDAP SDK version 4.17 (docs etc...)