The Pax LDAP Server project provides Ldap servers wrapped into OSGi bundles. Those bundles are manageable via the standard OSGi services (e.g. ConfigurationAdmin) and may provide implementation specific behaviour via registering a service in the OSGi service registry.
The Pax LDAP Server project was created when the Pax UserAdmin project needed a programmatic access to Ldap server management functionality to create automated integration tests.
So far there is no intention to define a common API for LDAP/Directory services - however, we only got one implementation so far ... would this be feasible in future. WDYT?