...
Code Block | ||
---|---|---|
| ||
cd /opt/opends.0 ./setup --cli |
The initial root user for the DN, the default is cn=Directory Manager, a well known account.
If you use the default, make Unless otherwise indicated select the default option,
Code Block |
---|
What would you like to use as the initial root user DN for the Directory
Server? [cn=Directory Manager]:
Please provide the password to use for the initial root user:
Please re-enter the password for confirmation: |
Make sure to use a complex password for the initial root user. We'll use the standard T&R password on "Directory Manager".
Code Block |
---|
On which port would you like the Directory Server to accept connections from
LDAP clients? [1389]:
On which port would you like the Administration Connector to accept
connections? [4444]: |
For LDAP client port, unless you are running with root priviledges you cannot use ports 1 through 1024. So rather than use 389, use 1389.
Use the default 4444 port for Administration Connector.
Code Block |
---|
Do you want to create base DNs in the server |
...
? (yes / no) [yes]: Provide the base DN for the directory data: [dc=example,dc=com]: |
...
cd=krypton,dc=com |
...
Options for populating the database: 1) Only create the base |
...
Do you want to enable SSL? (yes / no) [no]:
Do you want to enable Start TLS? (yes / no) [no]:
Say no to starting the server. We will verify the environment first before starting.
What would you like to do? 1) Set up the server with the parameters above
Code Block | ||
---|---|---|
| ||
entry
2) Leave the database empty
3) Import data from an LDIF file
4) Load automatically-generated sample data
Enter choice [1]:
Do you want to enable SSL? (yes / no) [no]:
Do you want to enable Start TLS? (yes / no) [no]:
Do you want to start the server when the configuration is completed? (yes /
no) [yes]: no |
Do you want to create base DNs in the server, select yes if you have a real DNS or use host entries on the server and client.
I select no to start the server because I like to we can run the status command even if the server is off and verify the configuration.
Code Block | ||
---|---|---|
| ||
Setup Summary ============= LDAP Listener Port: 1389 Administration Connector Port: 4444 LDAP Secure Access: disabled Root User DN: cn=Directory Manager Directory Data: Create New Base DN cd=krypton,dc=com. Base DN Data: Only Create Base Entry (cd=krypton,dc=com) Do not start Server when the configuration is completed What would you like to do? 1) Set up the server with the parameters above 2) Provide the setup parameters again 3) Print equivalent non-interactive command-line 4) Cancel and exit Enter choice [1]: See /tmp/opends-setup-774306341481213092998122271824097562.log for a detailed log of this operation. Configuring Directory Server ..... Done. Creating Base Entry dccd=tin-phamkrypton,dc=com ..... Done. To see basic server configuration status and configuration you can launch /opt/opendjopends.0/bin/status |
You can run the status command even if the server is off and verify the configuration.
Start and Stop
As a reference,
...