Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

DNS

Ensure that your dns entry is also in yoru your host file.

OpenDJ replication requires that you use fully qualified domain names, such as opendj.example.com so we'll use,

opendj1.krypton.com www.opendj1.krypton.com

Install Required Package

For some reason fontconfig is required for a proper install otherwise you get this error message,

...

Code Block
languagebash
sudo apt-get install fontconfig 

Configure Java

Panel

If your default Java environment is not appropriate, set OPENDJ_JAVA_HOME to the path to the correct Java environment, or set OPENDJ_JAVA_BIN to the absolute path of the java command. The latter environment variable is useful for example if you have both 32-bit and 64-bit versions of the Java environment installed, and want to make sure you use the 64-bit version.

...

Log off and log back on to wipe out the temporary environment variable.

Note
Ok this is stupid, they wipe file after install so I have to put it back in after... so maybe just use the environment variable and then turn around and modify the file after.

 

Command Line Setup

Run the command line setup,

...

You can run the status command even if the server is off and verify the configuration.

Start and Stop

As a reference,

Code Block
languagebash
cd /opt/opendj.0/bin
./start-ds

cd /opt/opendj.0/bin
bin./stop-ds

# I think this is verbose mode but not finding docs on it
./start-ds -s

...

Code Block
languagebash
cd /opt/opendj.0/bin 
./start-ds
See /tmp/opends-setup-7855637320320628455.log for a detailed log of this operation.
Configuring Directory Server ..... Done.
Creating Base Entry dc=tin-pham,dc=com ..... Done.
Starting Directory Server .......... Done.
To see basic server configuration status and configuration you can launch /opt/opendj.0/bin/status

Create Data Stores

OpenAM uses two data stores,

...

Code Block
languagebash
./OpenDJ/bin/dsconfig create-backend --backend-name myOrgRoot --set base-dn:o=myOrg --set enabled:true 

 

..

Note
K this is getting ridiculous... for now let's just use the internal data store for the configurations.

...

Relax the Restriction on Objects

Another bug in a sense. Carefully reading the manual,

...

 

cd /opt/opends.0
./dsconfig -h opendj.tin-pham.com -p 4444 -D "cn=Directory Manager" -w ****** set-global-configuration-prop --set single-structural-objectclass-behavior:warn -X -n

 

References

Not bad but not good manual setup - http://opendj.forgerock.org/doc/install-guide/OpenDJ-Install-Guide.html

...