1 .TH CHLOG2REPLOG 8C "22 September 1998" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 chlog2replog \- convert an X.500 DSA-style changelog to an LDAP-style
9 .B SBINDIR/chlog2replog
10 .B \-r hostname:port [\-r hostname:port ...]
11 .B \-d dn\-suffix [\-o output\-file] < input\-file
15 chlog2replog is used to convert an X.500\-style changelog to an
16 LDAP\-style replication log. It reads its standard input and
17 writes standard output if no \-o flag is given. If the \-o flag
20 writes its output to the given file, following
21 the same advisory locking mechanisms respected by the
23 program. This makes it possible to use chlog2replog in a pipeline
29 .BI \-r " hostname:port"
30 This option specifies the hostname and port number to which updates
33 will include one "replica: hostname:port" directive in each replication
34 log entry it writes out for each
36 option given. You may supply as many replica hostname:port options as
40 This option specifies an additional string to append to converted
41 DNs (Distinguished Names) converted from the changelog file. The
42 DNs in the changelog file will typically be partial DNs which omit
43 the portion of the directory tree "above" the organizational root.
44 For example, if your directory tree is rooted at o=University of
45 Michigan, c=US, you will need to include the argument
46 "\-d ", o=University of Michigan, c=US".
48 .BI \-o " output\-file"
49 If given, this option specifies an output file to which converted
50 replication log entries will be written.
52 obeys the same file locking conventions used by
54 so that it is possible to use
56 to "feed" changes from an X.500 DSA to
59 section, below, for more information.
61 To read the DSA-style changelog file
63 and write on the standard output an LDAP-style replication log,
64 appending ", o=University of Michigan, c=US" to all entry
65 DNs, and including a replica: entry for host "ldapserver," port
66 389, give the command:
70 SBINDIR/chlog2replog -d ", o=University of Michigan, c=US"
71 -r ldapserver:389 < changelog
75 To do the same, but routing the output to the file "replog," using
76 slurpd\-compatible file\-locking,
81 SBINDIR/chlog2replog -d ", o=University of Michigan, c=US"
82 -r ldapserver:389 -o replog < changelog
86 To continually read new changes from the file "changelog" and write
87 them to the file "replog",
92 tail +0f changelog | SBINDIR/chlog2replog
93 -d ", o=University of Michigan, c=US"
94 -r ldapserver:389 -o replog < changelog
105 "The SLAPD and SLURPD Administrator's Guide"
108 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
110 is derived from University of Michigan LDAP 3.3 Release.