HOW-TO: OpenLDAP on OS X (Tiger)

OpenLDAP is installed by default on Tiger (and earlier versions of OS X). In order to get it into a useful state, however, you will need to make a few changes:

  1. Locate the OpenLDAP configuration files in /etc/openldap/

  2. cp slapd.conf.default slapd.conf

  3. Edit slapd.conf:

    (optionally use slappasswd to avoid plaintext password in slapd.conf)

  4. Make sure that /var/db/openldap/openldap-data/ exists, creating it if it does not.

  5. Run slapd: sudo /usr/libexec/slapd