This tutorial explains how to set up an X.500 directory server and configure the OSGi container to use LDAP authentication.