Install OpenDJ on RHEL6
Official Website "OpenDJ is a extension of the Sun Microsystems 'initiated OpenDS project and offers a fully supported product for it. "The following articles will introduce the installation and configuration of ForgeRock Open Platform's OpenDJ, OpenIDM, and OpenAM products, and how to use them to build a basic platform for enterprise user management and access authentication.
Check the Java environment. Otherwise, see install Java on RHEL6.
# java -versionjava version "1.6.0_31"Java(TM) SE Runtime Environment (build 1.6.0_31-b04)Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Download
# wget http://download.forgerock.org/downloads/opendj/2.4.5/OpenDJ-2.4.5.zip
Install
# Cp OpenDJ-2.4.5.zip/opt # cd/opt # unzip OpenDJ-2.4.5.zip # mv OpenDJ-2.4.5 opendj # cd opendj if in Gui #. /setup here uses shell installation as an example #. /setup -- cliOpenDJ 2.4.5 The installer is initializing. Please wait... what content do you want to use as the initial superuser DN of the directory server? [Cn = Directory Manager]: Provide the password for the initial Super User: password. Enter the password again to confirm the password. Which port does the Directory Server want to use to accept connections from the LDAP client? [389]: 1389 on which port do you want the management connector to accept the connection? [4444]: Do you want to create a base DN in the server? (Yes/no) [yes]: provides the base DN for the directory data: [dc = example, dc = com]: Options for filling the database: 1) create only the base entry 2) leave the database blank 3) import data from the LDIF file 4) load the automatically generated sample data input option [1]: Do you want to enable SSL? (Yes/no) [no]: Do you want to enable StartTLS? (Yes/no) [no]: Do you want to start the server when the configuration is complete? (Yes/no) [yes]: Installation abstract =============== LDAP listener port: 389 management connector port: 4444 LDAP secure access: super User DN: cn = Directory Manager Directory data disabled: Create a new base DN dc = example, dc = com. Base DN data: only create base entry (dc = example, dc = com) What operations do you want to perform to start the server when the configuration is complete? 1) Use the preceding parameter to set the Server 2) provide the installation parameter again 3) print the equivalent non-interactive Command Line 4) cancel and exit the input option [1]: see the/tmp/opends-setup-1826847628910167129.log for detailed logs about this operation. Configuring Directory Server... complete. The base entry dc = example, dc = com... is being created. Starting directory server ................
Stop
# bin/stop-ds
Start
# bin/start-ds
Start Control Panel
# bin/control-panel
Add to service method 1 (run as root)
# bin/create-rc-script -f /etc/init.d/opendj
Add to service method 2 (if there is no-u parameter, it will run as root ). Production environments are recommended to run in this way, but some versions of OpenDJ have bugs: OPENDJ-17
# useradd -s /sbin/nologin opendj# chown -R opendj:opendj /opt/opendj# bin/create-rc-script -f /etc/init.d/opendj -u opendj
Check service Startup settings. 345 takes effect. OpenDJ starts automatically after Reboot.
# Chkconfig -- list | grep opendjopendj 0: Disable 1: Disable 2: Disable 3: Enable 4: Enable 5: Enable 6: Disable
Run
# service opendj { start | stop | restart }
For more detailed installation documents, refer to the official documentation or install OpenDJ (GUI) on CentOS6 ).