Versions Compared

Key

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

...

It is not an official artifact of Apache Directory yet. Although if some people are interested, it soon can be. In the meantime, there are no official releases etc.

How to build it

How to enable and configure it

Activation in Tomcat server.xml is simply

After checking out the sources from subversion,

Code Block
<Realm className="org.apache.directory.tomcatrealm.EmbeddedApacheDsRealm" />

within the context the realm is intended to act.

How to use it

mvn install

It builds a jar file which contains the Realm class. In order to use it, one has to copy it to the Tomcat server lib directory, along with the required ApacheDS and dependency jars.

How to enable and configure it

Activation in Tomcat server.xml is simply

Code Block

<Realm className="org.apache.directory.tomcatrealm.EmbeddedApacheDsRealm" />

within the context the realm is intended to act.

When Tomcat starts up, ApacheDS starts as well and You can use Studio to edit your users and groups after Tomcat startup; the embedded ApacheDS opens an LDAP port at 10389.I will continue testing and will provide some documentation on the wiki later on. Some features like configuration (LDAP port, filter expressions for searches, ...) are still missing, but I think it looks quite promising.which defaults to 10389. You can use any LDAP client to connect to the embedded ApacheDS. We recommend Apache Directory Studio for this tasks.

Within the realm definition in Tomcats server.xml, you can add some attributes to configure ApacheDS:

Parameter

Description

Default value

ldapPort

the port number ApacheDS will listen to via LDAP

10389

workingDirectory

the working directory where ApacheDS stores its data

catalina.home/apacheDsWorkingDir

 

 

 

How to use it

Feel free to check it out and provide feedback. Further discussions about whether we provide this as official artifact will be on the dev-list , which you hopefully scan as wellof Apache Directory project.