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

chebrard
26.54.2009 34ef24e42b23d094a2dc9a2ff9904569318602f8
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
'\" te
.\" Copyright (c) 2008, Sun Microsystems Inc. All
.\" Rights Reserved.
.TH dsreplication 1 "December 2008" "1.1" "User Commands"
.SH NAME
dsreplication \- configures replication between
directory servers so that the data of the servers is synchronized
.SH SYNOPSIS
.LP
.nf
\fBdsreplication\fR \fIsubcommand\fR \fIoptions\fR
.fi
 
.SH DESCRIPTION
.sp
.LP
The \fBdsreplication\fR command can be used to configure
replication between directory servers so that the data of the servers is synchronized.
First enable replication by using the \fBenable\fR subcommand
and then initialize the contents of one directory server with the contents
of another server by using the \fBinitialize\fR subcommand.
.sp
.LP
Like the \fBdsconfig\fR command, \fBdsreplication\fR can
be run in interactive mode, which walks you through the replication setup
process.  To run \fBdsreplication\fR in interactive mode, type
the command name with no parameters.
.sp
.LP
Run \fBdsreplication --help\fR for more information, or
use the dsreplication online documentation at http://docs.opends.org/1.2/page/Dsreplication\&.
.SH SUB-COMMANDS
.sp
.LP
The following subcommands are used with the \fBdsreplication\fR command.
.sp
.ne 2
.mk
.na
\fB\fBdisable\fR\fR
.ad
.sp .6
.RS 4n
Disable replication on the specified directory server for
the specified base DN. This subcommand removes references to the specified
server in the configuration of the servers with which this server is replicating
data. Suboptions are as follows:
.sp
\fB-D, --bindDN \fIbindDN\fR\fR. The
DN used to bind to the server on which replication will be disabled. This
option must be used if no global administrator has been defined on the server
or if you do not want to remove references in the other replicated servers.
The password provided for the global administrator is used when this option
is specified.
.sp
\fB-h, --hostname \fIhost\fR\fR. Directory
server host name or IP address.
.sp
\fB-p, --port \fIport\fR\fR. Directory
server administration port number.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBenable\fR\fR
.ad
.sp .6
.RS 4n
Update the configuration of the directory servers to replicate
data under the specified base DN. If one of the specified servers is already
replicating the data under the base DN to other servers, executing this subcommand
updates the configuration of all the servers. It is therefore sufficient to
execute the subcommand once for each server that is added to the replication
topology. Suboptions are as follows:
.sp
\fB--bindDN2 \fIbindDN\fR\fR. The
DN used to bind to the second server whose contents will be replicated. If
no bind DN is specified, the global administrator is used to bind.
.sp
\fB--bindPassword1 \fIbindPassword\fR\fR.
The password used to bind to the first server whose contents will be replicated.
If no bind DN was specified for the first server, the password of the global
administrator is used to bind.
.sp
\fB--bindPassword2 \fIpassword\fR\fR.
The password used to bind to the second server whose contents will be replicated.
If no bind DN was specified for the second server, the password of the global
administrator is used to bind.
.sp
\fB--bindPasswordFile1 \fIfilename\fR\fR \fB\fR.
The file containing the password used to bind to the first server whose contents
will be replicated. If no bind DN was specified for the first server, the
password of the global administrator is used to bind.
.sp
\fB-D, --bindDN1 \fIbindDN\fR\fR.
The DN used to bind to the first server whose contents will be replicated.
If no bind DN is specified, the global administrator is used to bind.
.sp
\fB-F, --bindPasswordFile2 \fIfilename\fR\fR.
The file containing the password used to bind to the second server whose contents
will be replicated. If no bind DN was specified for the second server, the
password of the global administrator is used to bind.
.sp
\fB-h, --host1 \fIhost\fR\fR. Host
name or IP address of the first server whose contents will be replicated.
.sp
\fB--noSchemaReplication\fR. Do not replicate the schema
between the servers. Note that schema replication is enabled by default. Use
this option if you do not want the schema to be synchronized between servers.
.sp
\fB-O, --host2 \fIhost\fR\fR. Hostname
or IP address of the second server whose contents will be replicated. 
.sp
\fB-p, --port1 \fIport\fR\fR. Directory
server administration port number of the first server whose contents will
be replicated.
.sp
\fB--port2 \fIport\fR\fR. Directory
server administration port number of the second server whose contents will
be replicated.
.sp
\fB-r, --replicationPort1 \fIport\fR\fR.
The port that will be used by the replication mechanism in the first directory
server to communicate with other servers. Only specify this option if replication
was not previously configured on the first directory server.
.sp
\fB-R, --replicationPort2 \fIport\fR\fR.
The port that will be used by the replication mechanism in the second directory
server to communicate with other servers. Only specify this option if replication
was not previously configured in the second server.
.sp
\fB-S, --skipPortCheck\fR. Skip the check to determine
whether the specified replication ports are usable. If this argument is not
specified, the server checks that the port is available only if you are configuring
the local host.
.sp
\fB--secureReplication1\fR. Specifies whether communication
through the replication port of the first server is encrypted. This option
is only taken into account the first time replication is configured on the
first server.
.sp
\fB--secureReplication2\fR. Specifies whether communication
through the replication port of the second server is encrypted. This option
is only taken into account the first time replication is configured on the
second server.
.sp
\fB--useSecondServerAsSchemaSource\fR. Use the second server
to initialize the schema of the first server. If neither this option nor the \fB--noSchemaReplication\fR option is specified, the schema of the first
server is used to initialize the schema of the second server.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBinitialize\fR\fR
.ad
.sp .6
.RS 4n
Initialize the contents of the data under the specified base
DN on the destination directory server with the contents on the source server.
This operation is required after enabling replication. Suboptions are as follows:
.sp
\fB-h, --hostSource \fIhost\fR\fR.
Directory server host name or IP address of the source server whose contents
will be used to initialize the destination server.
.sp
\fB-O, --hostDestination \fIhost\fR\fR \fBhost\fR. Directory server hostname or IP address of the destination
server whose contents will be initialized.
.sp
\fB-p, --portSource\fR \fBport\fR. Directory
server administration port number of the source server whose contents will
be used to initialize the destination server.
.sp
\fB--portDestination\fR \fBport\fR. Directory
server administration port number of the destination server whose contents
will be initialized.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBinitialize-all\fR\fR
.ad
.sp .6
.RS 4n
Initialize the data under the specified base DN, on all the
directory servers in the topology, with the data on the specified server.
This operation is required after enabling replication for replication to work.
Alternatively, you can use the \fBinitialize\fR sub-command on
each individual server in the topology. Suboptions are as follows:
.sp
\fB-h, --hostname \fIhost\fR\fR. Directory
server host name or IP address of the source server.
.sp
\fB-p, --port \fIport\fR\fR. Directory
server administration port number of the source server.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBpost-external-initialization\fR\fR
.ad
.sp .6
.RS 4n
Enable replication to work after the entire topology has been
reinitialized by using \fBimport-ldif\fR or binary copy. This
subcommand must be called after you initialize the contents of all directory
servers in a topology by using \fBimport-ldif\fR or binary copy.
If you do not run this subcommand, replication will no longer work after the
initialization. Suboptions are as follows:
.sp
\fB-h, --hostname \fIhost\fR\fR. Directory
server host name or IP address.
.sp
\fB-p, --port \fIport\fR\fR. Directory
server administration port number.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBpre-external-initialization\fR\fR
.ad
.sp .6
.RS 4n
Prepare a replication topology for initialization by using \fBimport-ldif\fR or binary copy. This subcommand must be called before
you initialize the contents of all directory servers in a topology by using \fBimport-ldif\fR or binary copy. If you do not run this subcommand, replication
will no longer work after the initialization. After running this subcommand,
initialize the contents of all the servers in the topology, then run the subcommand \fBpost-external-initialization\fR. Suboptions are as follows:
.sp
\fB-h, --hostname \fIhost\fR\fR. Directory
server host name or IP address.
.sp
\fB-l, --local-only\fR. Use this option when the contents
of only the specified directory server will be initialized with an external
method.
.sp
\fB-p, --port \fIport\fR\fR. Directory
server administration port number.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fBstatus\fR\fR
.ad
.sp .6
.RS 4n
List the replication configuration for the specified base
DNs of all directory servers defined in the registration information. If no
base DNs are specified, the information for all base DNs is displayed. Suboptions
are as follows:
.sp
\fB-h, --hostname \fIhost\fR\fR. Directory
server host name or IP address.
.sp
\fB-p, --port \fIport\fR\fR. Directory
server administration port number.
.sp
\fB-s, --script-friendly\fR. Display the status in a format
that can be parsed by a script.
.RE
 
.SH OPTIONS
.sp
.LP
The following global options are supported:
.sp
.ne 2
.mk
.na
\fB\fB-b, --baseDN \fIbaseDN\fR\fR\fR
.ad
.sp .6
.RS 4n
Specify the base DN of the data to be replicated or initialized,
or for which replication should be disabled. Multiple base DNs can be specified
by using this option multiple times.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-j, --adminPasswordFile \fIfilename\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the global administrator password in the specified file
when authenticating to the directory server. This option must not be used
in conjunction with \fB--adminPassword\fR.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-w, --adminPassword \fIpassword\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the global administrator password when authenticating
to the directory server.
.RE
 
.sp
.LP
The following LDAP connection options are supported:
.sp
.ne 2
.mk
.na
\fB\fB-I, --adminUID \fIUID\fR\fR\fR
.ad
.sp .6
.RS 4n
Specify the User ID of the global administrator to bind to
the server. If no global administrator was defined previously for any of the
servers, this option creates a global administrator by using the data provided.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-K, --keyStorePath \fIpath\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the client keystore certificate in the specified path.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-N, --certNickname \fInickname\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the specified certificate for authentication.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-o, --saslOption \fIname\fR=\fIvalue\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the specified options for  SASL authentication.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-P, --trustStorePath \fIpath\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the client trust store certificate in the specified path.
This option is not needed if \fB--trustAll\fR is used, although
a trust store should be used when working in a production environment.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-T, --trustStorePassword \fIpassword\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the password needed to access the certificates in the
client trust store. This option is only required if \fB--trustStorePath\fR is
used and the specified trust store requires a password in order to access
its contents (which most trust stores do not require). This option must not
be used in conjunction with \fB--trustStorePasswordFile\fR.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-u, --keyStorePasswordFile \fIfilename\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the password in the specified file to access the certificates
in the client keystore. This option is only required if \fB--keyStorePath\fR is
used. This option must not be used in conjunction with \fB--keyStorePassword\fR.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-U, --TrustStorePasswordFile \fIfilename\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the password in the specified file to access the certificates
in the client trust store. This option is only required if \fB--trustStorePath\fR is used and the specified trust store requires a password in order
to access its contents (most trust stores do not require this). This option
must not be used in conjunction with \fB--trustStorePassword\fR.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-W, --keyStorePassword \fIpassword\fR\fR\fR
.ad
.sp .6
.RS 4n
Use the password needed to access the certificates in the
client keystore. This option is only required if \fB--keyStorePath\fR is
used. This option must not be used in conjunction with \fB--keyStorePasswordFile\fR.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-X, --trustAll\fR\fR
.ad
.sp .6
.RS 4n
Trust any certificate that the directory server might present
during SSL or StartTLS negotiation. This option can be used for convenience
and testing purposes, but for security reasons a trust store should be used
to determine whether the client should accept the server certificate.
.RE
 
.sp
.LP
The following input/output options are supported:
.sp
.ne 2
.mk
.na
\fB\fB-n, --no-prompt\fR\fR
.ad
.RS 29n
.rt  
Run in non-interactive mode.  If some data in the command
is missing, the user will not be prompted and the tool will fail.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB--noPropertiesFile\fR\fR
.ad
.RS 29n
.rt  
Indicate that the utility will not use a properties file to
get the default command-line options.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB--propertiesFilePath \fIpath\fR\fR\fR
.ad
.RS 29n
.rt  
Specify the path to the properties file that contains the
default command-line options.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-Q, --quiet\fR\fR
.ad
.RS 29n
.rt  
Run in quiet mode. No output will be generated unless a significant
error occurs during the process.
.RE
 
.sp
.LP
The following general options are supported:
.sp
.ne 2
.mk
.na
\fB\fB-?, -H, --help\fR\fR
.ad
.RS 18n
.rt  
Display command-line usage information for the utility and
exit without making any attempt to stop or restart the directory server.
.RE
 
.sp
.ne 2
.mk
.na
\fB\fB-V, --version\fR\fR
.ad
.RS 18n
.rt  
Display the version information for the directory server and
exit rather than attempting to run this command.
.RE
 
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for
descriptions of the following attributes:
.sp
 
.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Interface StabilityUncommitted
.TE