13.2 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):


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

Mac OS X Panther for Unix Geeks
Mac OS X Panther for Unix Geeks
ISBN: 0596006071
EAN: 2147483647
Year: 2003
Pages: 212

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net