ApacheDS – Apache Directory LDAP server

Apache Directory LDAP Server

ApacheDS 2.0 is an embeddable, extendable, standards compliant, modern LDAP server written entirely in Java, and available under the Apache Software License. Other network protocols like Kerberos and NTP are supported as well (and even more may be added), but basically (and especially for this introduction guide) ApacheDS is an LDAP server.

The Apache Directory Server is an embeddable LDAP server implemented in pure Java. It has several features that make it unique among LDAP servers.


Some of these features are as follows:


  • Designed as an LDAP and X.500 platform; plugable components and subsystems make ApacheDS extremely modular and ideal for experiments with various aspects of the LDAP protocol.
  • The server’s frontend is completely separable from its backend and vice-versa making it very flexible for implementing virtual directories, proxy servers and gateways to X.500 directories.
  • Several backends can be implemented and plugged into the server’s partition nexus. The server supports a BTree based partition out of the box but any backing store can be used to implement a partition as long as it conforms to interfaces.
  • The server exposes aspects of administration via a special system backend. LDAP can be used to manage these concerns through the system naming context at ou=system.
  • The server contains a server side JNDI LDAP provider as the facade for the entire backend subsystem. JNDI operations are directly translated by this provider into operations against the nexus and the target partitions storing server entries.
  • The server’s networking code, MINA (Multipurpose Infrastructure for Network Applications) was designed for pluggable protocol providers, of all sorts and not just LDAP. MINA gives ApacheDS the ability to handle large amounts of concurrency.
  • LDAP Stored Procedures and Triggers are scheduled for the next major version of ApacheDS.
  • LDAPv3 compatible certified by the OpenGroup


Java 7.0. We recommend using Oracle’s JDK. The server should also work with Java version 6.
check your java installation

[[email protected] ~]# java -version
java version “1.7.0_55”
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)


Download ApacheDS platforms

Windows (exe)
Mac OS X (dmg)
Debian package (deb)
RPM package (rpm)
Linux Binary (bin)


Example Installation on Linux 64 Bit server
#cd /usr/local

#wget http://mirrors.koehn.com/apache//directory/apacheds/dist/2.0.0-M19/apacheds-2.0.0-M19-64bit.bin

#chmod 755 apacheds-2.0.0-M19-64bit.bin



apacheds installation
provide all the inputs

Restart ApacheDS service

# /etc/init.d/apacheds-2.0.0-M19-default start
Starting ApacheDS – default…
You can verify the listening ports.
[[email protected]]# lsof -i tcp:10389
java 1895 root 109u IPv6 20796 0t0 TCP *:10389 (LISTEN)
java 1895 root 110u IPv6 52927 0t0 TCP> (ESTABLISHED)