Addressbook : Introduction

Welcome to the Addressbook sample.

Donated by Ross McDonald and Jeremy Quinn from their presentation at CocoonGT 2006.

Please run through the setup section below then give the sample a try here.


In order for this sample to work, LDAP needs setting up on this machine.

You will need to do the following setup in a terminal, using the configuration files in samples/resources in this block.

NB. These instructions are only tested on MacOSX 'Tiger' where OpenLDAP is pre-installed as standard

Copy the provided OpenLDAP config file :
$ cd src/blocks/naming/samples/resources
$ sudo cp slapd.conf /etc/openldap/slapd.conf

Start OpenLDAP :
$ sudo /usr/libexec/slapd

Configure the Addressbook directory :
$ sudo ldapadd -x -D "dc=ldap,dc=cocoongt,dc=org" -W -f directory.ldif

Add some sample data to the Addressbook :
$ sudo ldapadd -x -D "dc=ldap,dc=cocoongt,dc=org" -W -f contact.ldif

When these operations ask for the LDAP password, enter 'secret'