SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other ldap-servers-3.3-3.i386.rpm

CHLOG2REPLOG

Section: Maintenance Commands (8C)
Updated: 26 April 1996
Index 

NAME

chlog2replog - convert an X.500 DSA-style changelog to an LDAP-stylereplication log 

SYNOPSIS

/usr/sbin/chlog2replog-r hostname:port [-r hostname:port ...]-d dn-suffix [-o output-file] < input-file

 

DESCRIPTION

chlog2replog is used to convert an X.500-style changelog to anLDAP-style replication log. It reads its standard input andwrites standard output if no -o flag is given. If the -o flagis given,chlog2replogwrites its output to the given file, followingthe same advisory locking mechanisms respected by theslurpdprogram. This makes it possible to use chlog2replog in a pipelineto produce input forslurpd.

 

OPTIONS

-r hostname:port
This option specifies the hostname and port number to which updatesshould be propagated. chlog2replogwill include one "replica: hostname:port" directive in each replicationlog entry it writes out for each-roption given. You may supply as many replica hostname:port options asyou wish.
-d dn-suffix
This option specifies an additional string to append to convertedDNs (Distinguished Names) converted from the changelog file. TheDNs in the changelog file will typically be partial DNs which omitthe portion of the directory tree "above" the organizational root.For example, if your directory tree is rooted at o=University ofMichigan, c=US, you will need to include the argument"-d ", o=University of Michigan, c=US".
-o output-file
If given, this option specifies an output file to which convertedreplication log entries will be written.chlog2replogobeys the same file locking conventions used byslurpd,so that it is possible to usechlog2replogto "feed" changes from an X.500 DSA toslurpd. See theexamplessection, below, for more information.
 

EXAMPLES

To read the DSA-style changelog filechanglelogand write on the standard output an LDAP-style replication log,appending ", o=University of Michigan, c=US" to all entryDNs, and including a replica: entry for host "ldapserver," port389, give the command:

        /usr/sbin/chlog2replog -d ", o=University of Michigan, c=US"        -r ldapserver:389 < changelog

To do the same, but routing the output to the file "replog," usingslurpd-compatible file-locking,give this command:

        /usr/sbin/chlog2replog -d ", o=University of Michigan, c=US"        -r ldapserver:389 -o replog < changelog

To continually read new changes from the file "changelog" and writethem to the file "replog",give this command:

        tail +0f changelog  | /usr/sbin/chlog2replog        -d ", o=University of Michigan, c=US"        -r ldapserver:389 -o replog < changelog

 

SEE ALSO

ldap(3),ldif(5),slurpd(8),slapd(8),

"The SLAPD and SLURPD Administrator's Guide"


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector