LDAP

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).

Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.