mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
17.01.2013 052f70c810813d9f5533b3cd4c9138d2df0d15e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ! CCPL HEADER START
  !
  ! 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.
  !
  ! You can also obtain a copy of the license at
  ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
  ! See the License for the specific language governing permissions
  ! and limitations under the License.
  !
  ! If applicable, add the following below this CCPL HEADER, with the fields
  ! enclosed by brackets "[]" replaced with your own identifying information:
  !      Portions Copyright [yyyy] [name of copyright owner]
  !
  ! CCPL HEADER END
  !
  !      Copyright 2011-2013 ForgeRock AS
  !
-->
<chapter xml:id='chap-upgrade'
 xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd'
 xmlns:xlink='http://www.w3.org/1999/xlink'
 xmlns:xinclude='http://www.w3.org/2001/XInclude'>
 <title>Upgrading to OpenDJ <?eval ${docTargetVersion}?></title>
 <indexterm><primary>Upgrading</primary></indexterm>
 
 <para>This chapter covers upgrade from OpenDJ 2.4.5 and later versions.</para>
 
 <para>For upgrades from earlier versions, upgrade first to OpenDJ
 <?eval ${stableServerVersion}?>, and then follow the procedures in this
 chapter. See <link xlink:show="new"
 xlink:href="https://wikis.forgerock.org/confluence/display/OPENDJ/OpenDJ+Installation+Guide#OpenDJInstallationGuide-UpgradingOpenDJDirectoryServer"
 >Upgrading OpenDJ Directory Server</link> in the OpenDJ Wiki for details on
 upgrading to OpenDJ <?eval ${stableServerVersion}?> from earlier
 versions.</para>
 
 <procedure xml:id="before-you-upgrade">
  <title>Before You Upgrade</title>
 
  <step>
   <para>Prepare to perform the upgrade procedure as the user who owns the
   OpenDJ server files. </para>
 
   <para>Make sure you have the credentials to run commands as the user who
   owns the server.</para>
  </step>
 
  <step>
   <xinclude:include href="../shared/itemizedlist-download.xml" />
  </step>
 
  <step>
   <para>In order to revert should the upgrade fail, make sure you perform a
   full backup of your current OpenDJ installation.</para>
 
   <para>It might be most expedient to back up the file system directory where
   the current OpenDJ server is installed as part of the upgrade process.</para>
 
   <para>Alternatively, see <link xlink:href="admin-guide#chap-backup-restore"
   xlink:show="new" xlink:role="http://docbook.org/xlink/role/olink"
   ><citetitle>Backing Up &amp; Restoring Data</citetitle></link> for
   instructions.</para>
  </step>
 </procedure>
 
 <procedure xml:id="upgrade-zip">
  <title>To Upgrade an OpenDJ Directory Server</title>
 
  <step>
   <para>Login as the user who owns the current OpenDJ server.</para>
  </step>
 
  <step>
   <para>Stop the current OpenDJ server.</para>
  </step>
 
  <step performance="optional">
   <para>If you have not already backed up the current OpenDJ server, make a
   back up copy of the directory where OpenDJ is installed.</para>
  </step>
 
  <step performance="optional">
   <para>If OpenDJ is currently installed in a directory such as
   <filename>OpenDJ-2.4.6</filename>, you can change the directory name to
   <filename>opendj</filename> to make it easier to unpack subsequent .zip
   deliveries for future upgrades.</para>
  </step>
 
  <step>
   <para>Unpack the new files from the .zip delivery over the current server
   files.</para>
 
   <para>If your directory is not named <filename>opendj</filename>, then
   you can first unpack the files, then copy everything in the
   <filename>opendj</filename> over the current server files.</para>
  </step>
 
  <step>
   <para>Run the <command>upgrade</command> command to bring OpenDJ
   configuration and application data up to date with the new binary and
   script files that you copied over the current server files.</para>
 
   <para>By default, the <command>upgrade</command> command requests
   confirmation before making important configuration changes. You can use
   the <option>--no-prompt</option> option to run the command
   non-interactively.</para>
 
   <para>When using the <option>--no-prompt</option> option, if the
   <command>upgrade</command> 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 <option>--force</option> option to force a non-interactive upgrade
   to continue in this case, also performing long running and critical
   tasks.</para>
  </step>
 
  <step>
   <para>Start the upgraded OpenDJ server.</para>
 
   <para>At this point the upgrade process is complete. See the resulting
   <filename>upgrade.log</filename> file for a full list of operations
   performed.</para>
  </step>
 </procedure>
 
 <example xml:id="upgrade-zip-example"><?dbfo keep-together="auto"?>
  <title>Upgrading From OpenDJ 2.4.6</title>
 
  <para>The following example upgrades an OpenDJ 2.4.6 directory server
  installed in <filename>/path/to/OpenDJ-2.4.6</filename>, backing up the
  current server directory in case the upgrade process fails, and changing
  the directory name to <filename>/path/to/opendj</filename> to simplify
  future upgrades.</para>
 
  <screen>$ cd /path/to
$ ls
OpenDJ-2.4.6
$ ./OpenDJ-2.4.6/bin/stop-ds --quiet
... msg=The backend userRoot is now taken offline
... msg=The Directory Server is now stopped
$ zip -rq OpenDJ-backup.zip OpenDJ-2.4.6
$ unzip -q ~/Downloads/OpenDJ-<?eval ${docTargetVersion}?>.zip
$ cp -r opendj/* OpenDJ-2.4.6/
$ rm -rf opendj
$ mv OpenDJ-2.4.6 opendj
$ ./opendj/upgrade --no-prompt
 
>>>> OpenDJ Upgrade Utility
 
 * OpenDJ will be upgraded from version 2.4.6.8102 to <?eval ${docTargetVersion}?>.<replaceable>revision</replaceable>
 * See '/path/to/opendj/upgrade.log' for a detailed log of this operation
 
>>>> Preparing to upgrade
 
  OpenDJ <?eval ${docTargetVersion}?> modified the default configuration of the 'isMemberOf' virtual
  attribute so that it is included with group entries. This was done in order
  to make it easier for users to determine which groups a 'nested' group
  belongs to.
  Do you want to make this configuration change? (yes/no) yes
 
  The upgrade is ready to proceed. Do you wish to continue? (yes/no) yes
 
 
>>>> Performing upgrade
 
  Fixing de-DE collation matching rule OID............................   100%
  Updating password policy configurations.............................   100%
  Updating audit log publisher configuration..........................   100%
  Adding 'etag' virtual attribute schema..............................   100%
  Configuring 'etag' virtual attribute................................   100%
  Configuring 'ds-pwp-password-expiration-time' virtual attribute.....   100%
  Updating certificate syntax configuration...........................   100%
  Updating JPEG syntax configuration..................................   100%
  Updating country string syntax configuration........................   100%
  Modifying filter in 'isMemberOf' virtual attribute configuration....   100%
  Updating dictionary password validator configuration................   100%
  Updating attribute value password validator configuration...........   100%
  Adding PBKDF2 password storage scheme configuration.................   100%
  Replacing schema file '02-config.ldif'..............................   100%
  Archiving concatenated schema.......................................   100%
 
>>>> OpenDJ was successfully upgraded from version 2.4.6.8102 to <?eval ${docTargetVersion}?>.<replaceable>revision</replaceable>
 
 * See '/path/to/opendj/upgrade.log' for a detailed log of this operation
$ ./opendj/bin/start-ds --quiet
$ </screen>
 </example>
 
 <procedure xml:id="upgrade-repl">
  <title>To Upgrade Replicated Servers</title>
  <step>
   <para>Upgrade each server sequentially, as described above.</para>
  </step>
 </procedure>
 
 <procedure xml:id="upgrade-dsml">
  <title>To Upgrade OpenDJ DSML Gateway</title>
  <step>
   <para>Replace the gateway web application with the newer version,
   as for a fresh installation.</para>
  </step>
 </procedure>
 
</chapter>