1 .TH SLAPD.REPLOG 5 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2005 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapd.replog \- slapd replication log format
12 The file slapd.replog is produced by the stand-alone LDAP daemon,
14 when changes are made to its local database that are to be
15 propagated to one or more replica
18 zero or more records, each one corresponding to a change, addition,
21 database. The file is meant to be read
24 the stand-alone LDAP update replication daemon. The records are
25 separated by a blank line. Each record has the following format.
27 The record begins with one or more lines indicating the replicas
28 to which the change is to be propagated:
31 replica: <hostname[:portnumber]>
34 Next, the time the change took place given, as the number of seconds since
35 00:00:00 GMT, Jan. 1, 1970, with an optional decimal extension, in order
36 to make times unique. Note that slapd does not make times unique, but
37 slurpd makes all times unique in its copies of the replog files.
40 time: <integer[.integer]>
43 Next, the distinguished name of the entry being changed is given:
46 dn: <distinguishedname>
49 Next, the type of change being made is given:
52 changetype: <[modify|add|delete|modrdn]>
55 Finally, the change information itself is given, the format of which
56 depends on what kind of change was specified above. For a \fIchangetype\fP
57 of \fImodify\fP, the format is one or more of the following:
61 <attributetype>: <value1>
62 <attributetype>: <value2>
67 Or, for a replace modification:
70 replace: <attributetype>
71 <attributetype>: <value1>
72 <attributetype>: <value2>
77 Or, for a delete modification:
80 delete: <attributetype>
81 <attributetype>: <value1>
82 <attributetype>: <value2>
87 If no \fIattributetype\fP lines are given, the entire attribute is to be
90 For a \fIchangetype\fP of \fIadd\fP, the format is:
93 <attributetype1>: <value1>
94 <attributetype1>: <value2>
96 <attributetypeN>: <value1>
97 <attributetypeN>: <value2>
100 For a \fIchangetype\fP of \fImodrdn\fP, the format is:
107 where a value of 1 for deleteoldrdn means to delete the values
108 forming the old rdn from the entry, and a value of 0 means to
109 leave the values as non-distinguished attributes in the entry.
111 For a \fIchangetype\fP of \fIdelete\fP, no additional information
112 is needed in the record.
114 The format of the values is the LDAP Directory Interchange Format
118 Access to the \fIslapd.replog\fP file is synchronized through the
121 on the file \fIslapd.replog.lock\fP. Any process
122 reading or writing this file should obey this locking convention.
124 The following sample \fIslapd.replog\fP file contains information
125 on one of each type of change.
128 replica: truelies.rs.itd.umich.edu
129 replica: judgmentday.rs.itd.umich.edu
131 dn: cn=Babs Jensen,dc=example,dc=com
138 replica: truelies.rs.itd.umich.edu
139 replica: judgmentday.rs.itd.umich.edu
141 dn: cn=Babs Jensen,dc=example,dc=com
144 description: the fabulous babs
146 replica: truelies.rs.itd.umich.edu
147 replica: judgmentday.rs.itd.umich.edu
149 dn: cn=Babs Jensen,dc=example,dc=com
151 newrdn: cn=Barbara J Jensen
157 slapd replication log file
160 lockfile for slapd.replog
168 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
170 is derived from University of Michigan LDAP 3.3 Release.