1 .TH CHLOG2REPLOG 8C "26 April 1996" "U-M LDAP LDVERSION"
3 chlog2replog \- convert an X.500 DSA-style changelog to an LDAP-style
7 .B \-r hostname:port [\-r hostname:port ...]
8 .B \-d dn\-suffix [\-o output\-file] < input\-file
12 chlog2replog is used to convert an X.500\-style changelog to an
13 LDAP\-style replication log. It reads its standard input and
14 writes standard output if no \-o flag is given. If the \-o flag
17 writes its output to the given file, following
18 the same advisory locking mechanisms respected by the
20 program. This makes it possible to use chlog2replog in a pipeline
26 .BI \-r " hostname:port"
27 This option specifies the hostname and port number to which updates
30 will include one "replica: hostname:port" directive in each replication
31 log entry it writes out for each
33 option given. You may supply as many replica hostname:port options as
37 This option specifies an additional string to append to converted
38 DNs (Distinguished Names) converted from the changelog file. The
39 DNs in the changelog file will typically be partial DNs which omit
40 the portion of the directory tree "above" the organizational root.
41 For example, if your directory tree is rooted at o=University of
42 Michigan, c=US, you will need to include the argument
43 "\-d ", o=University of Michigan, c=US".
45 .BI \-o " output\-file"
46 If given, this option specifies an output file to which converted
47 replication log entries will be written.
49 obeys the same file locking conventions used by
51 so that it is possible to use
53 to "feed" changes from an X.500 DSA to
56 section, below, for more information.
58 To read the DSA-style changelog file
60 and write on the standard output an LDAP-style replication log,
61 appending ", o=University of Michigan, c=US" to all entry
62 DNs, and including a replica: entry for host "ldapserver," port
63 389, give the command:
67 ETCDIR/chlog2replog -d ", o=University of Michigan, c=US"
68 -r ldapserver:389 < changelog
72 To do the same, but routing the output to the file "replog," using
73 slurpd\-compatible file\-locking,
78 ETCDIR/chlog2replog -d ", o=University of Michigan, c=US"
79 -r ldapserver:389 -o replog < changelog
83 To continually read new changes from the file "changelog" and write
84 them to the file "replog",
89 tail +0f changelog | ETCDIR/chlog2replog
90 -d ", o=University of Michigan, c=US"
91 -r ldapserver:389 -o replog < changelog
102 "The SLAPD and SLURPD Administrator's Guide"