| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
| LDAP Listener Port | 389 |
|---|---|
| Administration Connector Port | 4444 |
| LDAP Secure Access | disabled |
| Root User DN | cn=manager |
| Directory Data | Create New Base DN o=company.local |
| Base DN Data | Only Create Base Entry (o=company.local) |
export OPENDS_JAVA_HOME=/usr/java5 cd /opt/OpenDS-2.2.0/bin ./setup
The installer will start in console mode:
What would you like to use as the initial root user DN for the Directory Server? [cn=Directory Manager]:
cn=manager
Please provide the password to use for the initial root user:
Please re-enter the password for confirmation:
On which port would you like the Directory Server to accept connections from
LDAP clients? [389]:
On which port would you like the Administration Connector to accept
connections? [4444]:
What do you wish to use as the base DN for the directory data?
[dc=example,dc=com]: o=company.local
Options for populating the database:
1) Only create the base entry
2) Leave the database empty
3) Import data from an LDIF file
4) Load automatically-generated sample data
Enter choice [1]: 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]:
Verify the logfile under /tmp/opends-setup-*.log for errors during setup
Stop the directory server
/opt/OpenDS-2.2.0/bin/stop-ds -D cn=manager -w <secret>
and continue with the steps listed below.
mkdir -p /var/data/opends /var/backup/opends /var/log/opends /var/dump/opends
cd /opt/OpenDS-2.2.0 mv db/* /var/data/opends rmdir db ln -sf /var/data/opends db mv logs/* /var/log/opends rmdir logs/ ln -sf /var/log/opends/ logs mv bak/* /var/backup/opends rmdir bak ln -sf /var/backup/opends/ bak
After linking the directories, your OpenDS-2.2.0 base directory should contain the following (linked) contents:
lrwxrwxrwx 1 root system 19 Sep 20 14:01 bak -> /var/backup/opends/ lrwxrwxrwx 1 root system 16 Sep 20 14:00 db -> /var/data/opends lrwxrwxrwx 1 root system 16 Sep 20 14:00 logs -> /var/log/opends/
/opt/OpenDS-2.2.0/bin/status
/opt/OpenDS-2.2.0/bin/start-ds
After startup, verify the following log entries (printed to the console)
[20/Sep/2010:16:04:37 +0200] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID 458887): The Directory Server has started successfully
/opt/OpenDS-2.2.0/bin/-D cn=manager -w <secret>
/opt/OpenDS-2.2.0/bin/backup --backupAll --backupDirectory /var/backup/opends -D cn=Manager -w <secret>
This will create a backup of all backends (schema, admin & userRoot).
/opt/OpenDS-2.2.0/bin/restore --listBackups --backupDirectory /var/backup/opends/userRoot
which will generate the output
Backup ID: 20100920153005Z Backup Date: 20/Sep/2010:17:30:05 +0200 Is Incremental: false Is Compressed: false Is Encrypted: false Has Unsigned Hash: false Has Signed Hash: false Dependent Upon: none
/opt/OpenDS-2.2.0/bin/restore --backupDirectory /var/backup/opends/userRoot --backupID 20100920153005Z
Discussion