Mac OS X includes OpenLDAP (http://www.openldap.org), an open source implementation of LDAPv3. By default, it's disabled on Mac OS X. To enable the OpenLDAP server, add the following line to /etc/hostconfig (for more information on hostconfig , see Chapter 2): LDAPSERVER=-YES- By default, OpenLDAP is configured to consult the network domain. If your Mac is running the default (standalone) Directory Services configuration, you'll only have the local domain. So, you'll need to edit /etc/openldap/slapd.conf and set the datasource entry to: datasource /var/db/netinfo/local.nidb If your Mac's Directory Services configuration has been altered to participate in a larger network, you should be careful about changing your LDAP configuration. Consult your system administrator for more information. (And if you are the system administrator, have at it!) When you reboot your computer, LDAP automatically starts up. To start LDAP without rebooting, run the command sudo SystemStarter start LDAP . This LDAP server shares the same database as NetInfo (see Chapter 3). |