To Create aDirectory Server Instance Fromthe CommandLine
Non-root users can create server instances.
Refer to the following procedure to create a Directory Server instance using the command line:
Create a new Directory Server instance.
$ dsadm create -p 1389 -P 1636 /local/dsInst
Choose the Directory Manager password:secret12
Confirm the Directory Manager password:secret12
Use ’dsadm start /local/dsInst’ to start the instance
The dsInst instance is created under the existing directory, /local/ and secret12 is assigned
as the DirectoryManager password.
Start the instance.
$ dsadm start /local/dsInst
Server started: pid=2845
(Optional) Prepare an example suffix.
a. Create an empty suffix.
Enter "cn=Directory Manager" password:
New data will override existing data of the suffix "dc=example,dc=com".
Initialization will have to be performed on replicated suffixes.
...
...
## Closing files...
## Import complete. Processed 160 entries in 4 seconds. (40.00 entries/sec)
Task completed (slapd exit code: 0).
The suffix is populated with sample data from Example.ldif.
c. Search for data in the new instance.
$ ldapsearch -p 1389 -b dc=example,dc=com "(uid=bjensen)" mail