OpenDJ 3.5 Install Guide
OpenDJ 3.5 Install Guide
Version 3.5
Mark Craig
ForgeRock AS
201 Mission St., Suite 2900
San Francisco, CA 94105, USA
+1 415-599-1100 (US)
www.forgerock.com
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
ForgeRock is the trademark of ForgeRock Inc. or its subsidiaries in the U.S. and in other countries. Trademarks are the property of their respective owners.
UNLESS OTHERWISE MUTUALLY AGREED BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING
THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO
NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR
EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
DejaVu Fonts
Bitstream Vera Fonts Copyright
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute
the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so,
subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if
the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software
without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
Arev Fonts Copyright
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute
the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the
Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if
the fonts are renamed to names not containing either the words "Tavmjong Bah" or the word "Arev".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Tavmjong Bah Arev" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from
Tavmjong Bah. For further information, contact: tavmjong @ free . fr.
Admonition graphics by Yannick Lung. Free for commerical use. Available at Freecns Cumulus.
Table of Contents
Preface ............................................................................................................. v
1. Who Should Read this Guide ................................................................. v
2. Formatting Conventions ....................................................................... vi
3. Accessing Documentation Online .......................................................... vi
4. Joining the ForgeRock Community ...................................................... vii
1. Installing OpenDJ Servers ............................................................................. 1
2. Upgrading to OpenDJ 3.5 ............................................................................ 25
3. Removing OpenDJ Servers .......................................................................... 37
Index .............................................................................................................. 41
iii
iv
Preface
This guide shows you how to install, upgrade, and remove OpenDJ software.
Unless you are planning a throwaway evaluation or test installation, read the
OpenDJ Release Notes before you get started.
If you only want to try OpenDJ server software, and you do not plan to store
any real or important data that you want to keep, then you need not read this
entire guide. Instead read Procedure1.1, "To Prepare For Installation" and
Procedure1.2, "To Install OpenDJ Directory Server With the GUI".
Formatting Conventions
Formatting Conventions
Most examples in the documentation are created in GNU/Linux or Mac OS
X operating environments. If distinctions are necessary between operating
environments, examples are labeled with the operating environment name in
parentheses. To avoid repetition file system directory names are often given
only in UNIX format as in /path/to/server, even if the text applies to C:\path\to
\server as well.
Absolute path names usually begin with the placeholder /path/to/. This path
might translate to /opt/, C:\Program Files\, or somewhere else on your system.
Command-line, terminal sessions are formatted as follows:
$ echo $JAVA_HOME
/path/to/jdk
"_rev" : "000000005b337348",
"_id" : "newuser",
...
vi
vii
viii
Chapter 1
3.
Note
The OEM distribution of OpenDJ directory server does not
include Berkeley DB Java Edition, and so does not support
JE backends.
4.
5.
Note
If your environment picks up an old installation of Java,
installation can fail. You might see an application error due to
an old Java version.
After completing the steps in Procedure1.1, "To Prepare For Installation", follow
these steps:
1.
Important
You cannot use a single set of server tools for multiple servers.
Tools for starting and stopping the server process, for example,
work with a single configured server. They do not have a
mechanism to specify an alternate server location.
If you want to set up another server after running the setup
command, install another set of tools and libraries.
Follow these steps to put the configuration, logs, and data files in a different
location:
1.
Before running the setup command, create an instance.loc file to identify the
location.
The setup command tries to read instance.loc in the same directory as the
setup command, such as /path/to/opendj/.
The instance.loc file contains a single line identifying either the absolute
location, such as /path/to/server, or the location relative to the instance.loc
file.
2.
Unzip opendj-3.5.0.zip in the file system directory where you want to install
the server.
The setup command, described in setup(1) in the OpenDJ Reference, uses the
directory where you unzipped the files as the installation directory, and does
not ask you where to install OpenDJ directory server. Therefore, if you want
to install elsewhere on the file system, unzip the files in that location.
When you unzip opendj-3.5.0.zip, a top-level opendj directory is created
in the directory where you unzipped the file. On Windows systems if you
unzip opendj-3.5.0.zip, with Right-Click > Extract All, be sure to remove the
trailing opendj-3.5.0 directory from the folder you specify.
2.
$ /path/to/opendj/setup --cli
READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING
THE FORGEROCK SOFTWARE, YOU, ON BEHALF OF YOURSELF AND YOUR COMPANY, AGREE TO
BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THESE
TERMS, DO NOT DOWNLOAD OR INSTALL THE FORGEROCK SOFTWARE.
...
Please read the License Agreement above.
You must accept the terms of the agreement before continuing with the
installation.
Accept the license (Yes/No) [No]:Yes
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:
Provide the fully-qualified directory server host name that will be used when
generating self-signed certificates for LDAP SSL/StartTLS, the administration
connector, and replication [opendj.example.com]:
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]:
Do you want to create base DNs in the server? (yes / no) [yes]:
Provide the backend type:
1)
2)
JE Backend
PDB Backend
Setup Summary
=============
LDAP Listener Port:
Administration Connector Port:
JMX Listener Port:
LDAP Secure Access:
Root User DN:
Directory Data:
Base DN Data: Import Data from
1389
4444
disabled
cn=Directory Manager
Create New Base DN dc=example,dc=com.
LDIF File (/path/to/Example.ldif)
Import LDIF
LDAP data interchange format (LDIF) is the standard text format for
expressing LDAP data.
If you have LDIF already, one reason you might not want to import the
data right away is because your data uses attributes not defined in the
default schema. Add schema definitions after installation, and then
import from LDIF.
If you have a large data set to import, also increase the import cache size,
which you can do by passing a Java properties file. You might also prefer
to perform data import offline.
Enable SSL and TLS
Enabling SSL or TLS lets you protect the network traffic between
directory clients and your server:
SSL
SSL requires its own, separate port for LDAPS traffic.
The default port for LDAPS is 636.
If you are working as a user who cannot open port 636, setup
suggests 1636 by default.
TLS
TLS lets you use StartTLS to negotiate a secure connection between
a client and server, starting from the same server port you configured
for LDAP.
X.509 certificates
The digital certificate you need for SSL and TLS can be selfsigned and created while you are working. Remember that client
applications view self-signed certificates like fake IDs, and so do not
trust them.
Self-signed certificates for externally facing ports facilitate testing,
but are not intended for production use.
Start the server
If you do not start the server during installation, you can use the /path/to/
opendj/bin/start-ds command later.
3.
10
$ /path/to/opendj/bin/status
>>>> Specify OpenDJ LDAP connection parameters
Administrator user bind DN [cn=Directory Manager]:
Password for user 'cn=Directory Manager':
--- Server Status --Server Run Status:
Started
Open Connections:
1
--- Server Details --Host Name:
opendj.example.com
Administrative Users:
cn=Directory Manager
Installation Path:
/path/to/opendj
Version:
OpenDJ 3.5.0
Java Version:
version
Administration Connector: Port 4444 (LDAPS)
--- Connection Handlers --Address:Port : Protocol : State
-------------:----------:---------: LDIF
: Disabled
0.0.0.0:161 : SNMP
: Disabled
0.0.0.0:636 : LDAPS
: Disabled
0.0.0.0:1389 : LDAP
: Enabled
0.0.0.0:1689 : JMX
: Disabled
--- Data Sources --Base DN:
dc=example,dc=com
Backend ID: userRoot
Entries:
160
Replication: Disabled
Note
You can install OpenDJ in unattended and silent fashion,
too. See the procedure, Procedure1.8, "To Install OpenDJ
Directory Server With a Properties File".
11
2.
...
To see basic server configuration status and configuration you can launch
/opt/opendj/bin/status
4.
12
Password:
2.
13
You might need to download an RPM to install the Java runtime environment,
and then install the RPM by using the rpm command:
# rpm -ivh jre-*.rpm
3.
...
To see basic server configuration status and configuration you can launch
/opt/opendj/bin/status
5.
14
0:off
1:off
2:on
3:on
4:on
5:on
6:off
15
Property names correspond to the option names, but without leading dashes.
Options that take no arguments become boolean properties as in the following
example:
enableStartTLS=true
If you use a properties file with multiple tools, prefix the property name with the
tool name followed by a dot (.), in the following example:
setup.rootUserPasswordFile=/tmp/pwd.txt
The properties file contains only installation options, and does not fully
configure OpenDJ directory server.
If you also want your script to configure OpenDJ directory server, follow a
successful run of the setup command with dsconfig commands to configure
16
3.
17
$ /net/install/dj/1/setup.sh
Archive: /net/install/dj/opendj-3.5.0.zip
creating: /path/to/opendj
...
inflating: /path/to/opendj/setup
inflating: /path/to/opendj/uninstall
inflating: /path/to/opendj/upgrade
READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING
THE FORGEROCK SOFTWARE, YOU, ON BEHALF OF YOURSELF AND YOUR COMPANY, AGREE TO
BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THESE
TERMS, DO NOT DOWNLOAD OR INSTALL THE FORGEROCK SOFTWARE.
...
Do you accept the License Agreement?yes
See /var/folders/.../opendj-setup-....log for a detailed log of this operation.
Configuring Directory Server ..... Done.
Configuring Certificates ..... Done.
Importing LDIF file /net/install/dj/Example.ldif ....... Done.
Starting Directory Server ....... Done.
To see basic server configuration status and configuration you can launch
/path/to/opendj/bin/status
At this point you can use OpenDJ directory server, or you can perform
additional configuration.
Procedure 1.9. To Install OpenDJ REST to LDAP Gateway
The OpenDJ REST to LDAP gateway functions as a web application in a web
application container, running independently of OpenDJ. Alternatively, you can
use the HTTP connection handler in OpenDJ directory server. For instructions
see Procedure5.8, "To Set Up REST Access to User Data" in the OpenDJ
Administration Guide.
You configure the gateway to access your directory service by editing
configuration files in the deployed web application:
WEB-INF/classes/config.json
This file defines how the gateway connects to LDAP directory servers,
and how user identities extracted from HTTP requests map to LDAP user
identities.
For details, see SectionA.1, "Gateway Configuration File" in the OpenDJ
Reference.
WEB-INF/classes/logging.properties
This file defines logging properties, and can be used when the gateway runs
in Apache Tomcat.
18
WEB-INF/classes/rest2ldap/rest2ldap.json
WEB-INF/classes/rest2ldap/endpoints/api/example-v1.json
2.
19
3.
If the REST to LDAP gateway runs in Jetty, make sure you set the log
level system property when starting Jetty: -Dorg.forgerock.opendj.
rest2ldap.level=FINEST.
Messages are written to the Jetty log.
4.
Restart the REST to LDAP gateway or the application server to make sure the
configuration changes are taken into account.
5.
Make sure that your directory server is running, and then check that the
gateway is connecting correctly.
The following command reads Babs Jensen's entry through the gateway to a
directory server holding data from Example.ldif. In this example, the gateway
is deployed under /rest2ldap:
20
$ curl http://bjensen:[email protected]:8080/rest2ldap/api/users/bjensen
{
"_id" : "bjensen",
"_rev" : "0000000084ebc394",
"_schema" : "frapi:opendj:rest2ldap:posixUser:1.0",
"_meta" : { },
"userName" : "[email protected]",
"displayName" : [ "Barbara Jensen", "Babs Jensen" ],
"name" : {
"givenName" : "Barbara",
"familyName" : "Jensen"
},
"description" : "Original description",
"contactInformation" : {
"telephoneNumber" : "+1 408 555 1862",
"emailAddress" : "[email protected]"
},
"uidNumber" : "1076",
"gidNumber" : "1000",
"homeDirectory" : "/home/bjensen",
"manager" : {
"_id" : "trigden",
"displayName" : "Torrey Rigden"
}
If you generated example data, Babs Jensen's entry is not included. Instead,
try a URL such as http://user.0:[email protected]:8080/
rest2ldap/api/users/user.0.
Procedure 1.10. To Install OpenDJ REST to LDAP Gateway (3.0)
The OpenDJ REST to LDAP gateway functions as a web application in a web
application container, running independently of OpenDJ. Alternatively, you can
use the HTTP connection handler in OpenDJ directory server. For instructions
see Procedure5.12, "To Set Up REST Access to OpenDJ Directory Server" in the
OpenDJ Administration Guide.
Note
This procedure applies to OpenDJ REST to LDAP gateway
3.0. If you are using OpenDJ REST to LDAP gateway 3.5, see
Procedure1.9, "To Install OpenDJ REST to LDAP Gateway".
You configure the gateway to access your directory service by editing the
configuration file opendj-rest2ldap-servlet.json in the deployed OpenDJ REST to
LDAP gateway web application:
21
1.
2.
3.
Restart the REST to LDAP gateway or the application server to make sure the
configuration changes are taken into account.
4.
Make sure that your directory server is running, and then check that the
gateway is connecting correctly.
The following command reads Babs Jensen's entry through the gateway to a
directory server holding data from Example.ldif:
22
$ curl http://bjensen:[email protected]:8080/rest2ldap/users/bjensen
{
"_rev" : "000000002ee3b764",
"schemas" : [ "urn:scim:schemas:core:1.0" ],
"contactInformation" : {
"telephoneNumber" : "+1 408 555 1862",
"emailAddress" : "[email protected]"
},
"_id" : "bjensen",
"name" : {
"familyName" : "Jensen",
"givenName" : "Barbara"
},
"userName" : "[email protected]",
"displayName" : "Barbara Jensen",
"manager" : [ {
"_id" : "trigden",
"displayName" : "Torrey Rigden"
} ]
If you generated example data, Babs Jensen's entry is not included. Instead,
try a URL such as http://user.0:[email protected]:8080/
rest2ldap/users/user.0.
Procedure 1.11. To Install OpenDJ DSML gateway
The OpenDJ DSML gateway functions as a web application in a web application
container. The DSML gateway runs independently of OpenDJ directory server.
You configure the gateway to access your directory service by editing the ldap.
host and ldap.port parameters in the gateway WEB-INF/web.xml configuration file:
1.
2.
Edit WEB-INF/web.xml to ensure the values for ldap.host and ldap.port are
correct.
3.
Restart the web application container according to the instructions for your
application server.
23
24
Chapter 2
Tip
With the migration of OpenDJ project code from Subversion
to Git, the upgrade code has changed to no longer rely on
Subversion revision numbers.
As a result, upgrade from a nightly build is not guaranteed to
work. Upgrade from one release to another works fine, as does
upgrade from a release to a nightly build.
As a workaround, rather than upgrading from a nightly build,
install a new server alongside the existing server and use
replication to bring the new server up to date before retiring the
older server.
Prepare to perform the upgrade procedure as the user who owns the OpenDJ
server files.
Make sure you have the credentials to run commands as the user who owns
the server.
2.
If OpenDJ directory server runs with Java 6, move to a newer version before
continuing the upgrade process.
To move to a newer version, edit the default.java-home setting in the opendj/
config/java.properties file, and then run the dsjavaproperties command.
3.
If you are upgrading to OpenDJ OEM edition from OpenDJ 2.6, make sure
there is enough disk space to export all of the data to LDIF files.
4.
5.
26
Make sure you perform a full backup of your current OpenDJ installation to
revert if the upgrade fails.
Due to changes to the backup archive format, make sure you stop OpenDJ
directory server and back up the file system directory where the current
OpenDJ directory server is installed rather than creating a backup archive
with the backup command.
Procedure 2.2. To Upgrade to OpenDJ 3.5
If you are upgrading to the OEM edition from OpenDJ 2.6, then this procedure
does not apply. Skip instead to Procedure2.3, "To Upgrade to OpenDJ OEM
Edition".
Before starting this procedure, follow the steps in Procedure2.1, "Before You
Upgrade".
To upgrade to OpenDJ directory server installed from native packages
(.deb, .rpm), use the command-line package management tools provided by the
system.
Note
OpenDJ directory server backend storage options have changed
since OpenDJ 2.6. The underlying implementation is based on
an extensible architecture, allowing you to choose the backend
storage type when you create a persistent backend for directory
data.
This procedure applies when you upgrade from OpenDJ
2.6, retaining the same underlying backend storage. The
configuration changes from a Local DB backend to a JE
Backend, and the upgrade procedure migrates the underlying
backend database. There is no need to export data to LDIF when
following this procedure.
The following steps describe how to upgrade OpenDJ directory server installed
from the cross-platform (.zip) delivery:
1.
2.
3.
If you have not already backed up the current OpenDJ server, make a back up
copy of the directory where OpenDJ is installed.
4.
Unpack the new files from the .zip delivery over the current server files.
27
5.
6.
Note
When you upgrade to OpenDJ 3.5 from an OpenDJ 3 or
earlier, the upgrade procedure leaves the HTTP connection
handler disabled.
The newer configuration supports inheritance and
subsresources, but is not compatible with the previous
configuration.
You must rewrite your configuration to the version
described in AppendixA, "REST to LDAP Configuration"
in the OpenDJ Reference, and then reconfigure the server
to use the new configuration. For details, see Section5.8,
"RESTful Client Access Over HTTP" in the OpenDJ
Administration Guide.
7.
28
If you are upgrading OpenDJ directory server on Windows, and you disabled
OpenDJ as a Windows service in order to upgrade, enable OpenDJ as a
Windows service again as in the following example:
29
$ cd /path/to/
$ sed -e "s/default.java-home=.*/default.java-home=\/path\/to\/jdk1.8/" \
opendj/config/java.properties \
> opendj/config/java.properties.new ; \
mv opendj/config/java.properties.new opendj/config/java.properties
$ /path/to/opendj/bin/dsjavaproperties
$ /path/to/opendj/bin/stop-ds --quiet
30
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
Note
OpenDJ directory server backend storage options have changed
since OpenDJ 2.6. The underlying implementation is based on
an extensible architecture, allowing you to choose the backend
storage type when you create a persistent backend for directory
data.
This procedure applies when you upgrade to the OEM edition
from OpenDJ 2.6, changing the underlying backend storage.
The configuration changes from a Local DB backend to a PDB
Backend, but the upgrade command in this version deletes the
data from OpenDJ directory server. Follow the instructions in
this procedure to avoid data loss.
Follow these steps:
1.
2.
3.
31
4.
If you have not already backed up the current OpenDJ server, make a back up
copy of the directory where OpenDJ is installed.
5.
6.
Run the upgrade command to bring OpenDJ configuration and schema data
up to date with the new binary and script files that replaced existing server
files.
By default, the upgrade command requests confirmation before making
important configuration changes. For some potentially long-duration tasks,
such as rebuilding indexes, the default choice is to defer the tasks until after
upgrade. Tasks that are not performed during upgrade must generally be
performed after upgrade but before you restart the server.
You can use the --no-prompt option to run the command non-interactively,
with the --acceptLicense option to accept the license terms non-interactively.
When using the --no-prompt option, if the upgrade command cannot complete
because it requires confirmation for a potentially very long or critical task,
then it exits with an error and a message about how to finish making the
changes. You can add the --force option to force a non-interactive upgrade to
continue in this case, also performing long running and critical tasks.
Once this step is complete, OpenDJ directory server no longer has access to
user data that was stored in Local DB backends.
7.
32
If user data occupies significant disk space, and not enough disk space is
available, then remove binary backups of the user data that you exported to
LDIF.
8.
Make sure you perform this step for all user data backends.
9.
33
$ cd /path/to/
$ sed -e "s/default.java-home=.*/default.java-home=\/path\/to\/jdk1.8/" \
opendj/config/java.properties \
> opendj/config/java.properties.new ; \
mv opendj/config/java.properties.new opendj/config/java.properties
$ /path/to/opendj/bin/dsjavaproperties
$ /path/to/opendj/bin/stop-ds --quiet
34
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
100%
Enable replication using the dsreplication command delivered with the new
server.
2.
3.
2.
Replace the gateway web application with the newer version, as for a fresh
installation.
Replace the gateway web application with the newer version, as for a fresh
installation.
35
36
Chapter 3
2.
Select the components to remove in the Uninstall Options screen, and then
click Uninstall to proceed.
3.
37
2.
Do you want to remove all components of the server or select the components to
remove?
1)
2)
q)
quit
3.
If the command output tells you to delete files manually, then remove those
remaining files to complete the process:
$ rm -rf /path/to/opendj
38
Removing the package does not remove your data or configuration. You must
remove /opt/opendj manually to get rid of all files.
Procedure 3.4. To Uninstall the RPM Package
When you uninstall the RPM package from the command-line, OpenDJ directory
server is stopped if it is running.
Removing the package does not remove your data or configuration. You must
remove /opt/opendj manually to get rid of all files.
39
40
Index
C
Command-line installation, 6
GUI installation, 3
Installing, 1
Silent installation, 7, 15
Uninstalling, 37
Upgrading, 25
41
42