Sun Java System Directory Server Enterprise Edition 6.3 Deployment Planning Guide

Preparing a Directory Server Instance

After unpacking the zip distribution, install Directory Server software on local disk space.

$ ./dsee_deploy install -c DS -i /local

For convenience set environment variables as shown.

$ export PATH=/local/ds6/bin:/local/dsrk6/bin:/local/dsee6/bin:${PATH}
$ export DIRSERV_PORT=1389
$ export LDAP_ADMIN_PWF=~/.pwd

After installing the software and setting environment variables, create a Directory Server instance using default ports for LDAP and LDAPS, respectively.

$ dsadm create -p 1389 -P 1636 /local/ds
Choose the Directory Manager password:
Confirm the Directory Manager password:
$ du -hs /local/ds
610K   /local/ds

Until you create a suffix, the Directory Server instance uses less than one megabyte of disk space.

$ dsadm start /local/ds
Server started: pid=8046
$ dsconf create-suffix dc=example,dc=com
Certificate "CN=hostname, CN=1636, CN=Directory Server,
 O=Sun Microsystems" presented by the server is not trusted.
Type "Y" to accept, "y" to accept just once, "n" to refuse, "d" for more
 details: Y
$ du -hs /local/ds
53M   /local/ds

For this example, make no additional changes to the default Directory Server configuration except those shown explicitly.