Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

LDAP in Geronimo

Geronimo uses the Apache Directory Server for its directory service, this is part of the Apache Directory Project. Geronimo implements the following two projects from the ApacheDS project.

...

Ensure that the Geronimo server is up and running and the "Directory" application is started. The initial default status for the Directory application in M5 is Stopped. To start the Directory application you can use the Geronimo console, after you logged in click on All Configurations on the left panel, look for org/apache/geronimo/Directory and click on Start.

Apache Geronimo can be configured to use two different Web containers, you can either use Jetty or Apache Tomcat. The following values will be required when you configure the LDAP clientfollowing sections will address how to configure LDAP on Geronimo for each of these containers.

Configure Geronimo LDAP using Jetty
Anchor
jetty
jetty

This section covers the configuration of the LDAP directory service in Geronimo when the Web container in use is Jetty. For this configuration example, the sample application used is a modified version of the application already available in the open JIRA GERONIMO-417. Download the sample application from the following URL:

http://opensource2.atlassian.com/confluence/oss/download/attachments/1798/ldap-jetty.zip

After extracting the zip file a ldap-jetty directory is created, from now on this directory will be referred as <ldap_home>.

At this point it is assumed that you have installed Java 1.4.2 and an LDAP client and you are capable of loading an .ldif file to a directory server.

Ensure that Geronimo is up and running and the Directory service is started.

Start your LDAP client and create a new connection profile with the following values:

Host:

<localhost>

Port:

1389

Base DN:

ou=system

User DN:

uid=admin,ou=system

Password:

secret

When specifying the User information make sure you append the User DN to the Base DN; in other words, uid=admin,ou=system.

Apache Geronimo can be configured to use two different Web containers, you can either use Jetty or Apache Tomcat. The following sections will address how to configure LDAP on Geronimo for each of these containers.

Configure Geronimo LDAP using

...

Tomcat
Anchor
tomcat
tomcat

...