2005-06-06 23:03:18 -04:00
|
|
|
.TH SLAPO-AUDITLOG 5 "RELEASEDATE" "OpenLDAP LDVERSION"
|
2024-03-26 15:45:07 -04:00
|
|
|
.\" Copyright 2005-2024 The OpenLDAP Foundation All Rights Reserved.
|
2005-06-06 23:03:18 -04:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
|
|
|
.\" $OpenLDAP$
|
|
|
|
|
.SH NAME
|
2009-06-02 20:43:44 -04:00
|
|
|
slapo\-auditlog \- Audit Logging overlay to slapd
|
2005-06-06 23:03:18 -04:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
ETCDIR/slapd.conf
|
2007-12-03 16:57:32 -05:00
|
|
|
.TP
|
|
|
|
|
ETCDIR/slapd.d
|
2005-06-06 23:03:18 -04:00
|
|
|
.SH DESCRIPTION
|
|
|
|
|
The Audit Logging overlay can be used to record all changes on a given
|
|
|
|
|
backend database to a specified log file. Changes are logged as standard
|
2021-02-25 11:39:57 -05:00
|
|
|
LDIF, with an additional comment header providing six fields of
|
|
|
|
|
information about the change. A second comment header is added at the end
|
|
|
|
|
of the operation to note the termination of the change.
|
2005-06-06 23:03:18 -04:00
|
|
|
.LP
|
|
|
|
|
For Add and Modify operations the identity comes from the modifiersName
|
|
|
|
|
associated with the operation. This is usually the same as the requestor's
|
|
|
|
|
identity, but may be set by other overlays to reflect other values.
|
|
|
|
|
.SH CONFIGURATION
|
2025-07-01 07:57:08 -04:00
|
|
|
Both slapd.conf and back-config style configuration are supported.
|
|
|
|
|
.TP
|
|
|
|
|
.B overlay auditlog
|
|
|
|
|
This directive loads the auditlog overlay.
|
2005-06-06 23:03:18 -04:00
|
|
|
.TP
|
|
|
|
|
.B auditlog <filename>
|
2025-07-01 07:57:08 -04:00
|
|
|
.TP
|
|
|
|
|
.B olcAuditlogFile: <filename>
|
2005-06-06 23:03:18 -04:00
|
|
|
Specify the fully qualified path for the log file.
|
|
|
|
|
.TP
|
2025-07-01 07:57:08 -04:00
|
|
|
.B auditlognonblocking {on|off}
|
|
|
|
|
.TP
|
|
|
|
|
.B olcAuditlogNonBlocking: {on|off}
|
|
|
|
|
Open <filename> in non-blocking mode. Useful if <filename> is a named pipe
|
|
|
|
|
and slapd should not block if no reader is available.
|
2021-02-25 11:39:57 -05:00
|
|
|
.SH COMMENT FIELD INFORMATION
|
|
|
|
|
The first field is the operation type.
|
|
|
|
|
.br
|
|
|
|
|
The second field is the timestamp of the operation in seconds since epoch.
|
|
|
|
|
.br
|
|
|
|
|
The third field is the suffix of the database.
|
|
|
|
|
.br
|
|
|
|
|
The fourth field is the recorded modifiersName.
|
|
|
|
|
.br
|
|
|
|
|
The fifth field is the originating IP address and port.
|
|
|
|
|
.br
|
|
|
|
|
The sixth field is the connection number. A connection number of -1
|
|
|
|
|
indicates an internal slapd operation.
|
2007-12-03 16:57:32 -05:00
|
|
|
.SH EXAMPLE
|
|
|
|
|
The following LDIF could be used to add this overlay to
|
2025-07-01 07:57:08 -04:00
|
|
|
.B cn=config
|
2007-12-03 16:57:32 -05:00
|
|
|
(adjust to suit)
|
|
|
|
|
.LP
|
|
|
|
|
.RS
|
|
|
|
|
.nf
|
2017-02-02 13:43:01 -05:00
|
|
|
dn: olcOverlay=auditlog,olcDatabase={1}mdb,cn=config
|
2007-12-03 16:57:32 -05:00
|
|
|
changetype: add
|
|
|
|
|
objectClass: olcOverlayConfig
|
|
|
|
|
objectClass: olcAuditLogConfig
|
|
|
|
|
olcOverlay: auditlog
|
|
|
|
|
olcAuditlogFile: /tmp/auditlog.ldif
|
|
|
|
|
.fi
|
|
|
|
|
.RE
|
|
|
|
|
.LP
|
|
|
|
|
.LP
|
2021-02-25 11:39:57 -05:00
|
|
|
.SH EXAMPLE CHANGELOG
|
|
|
|
|
.LP
|
|
|
|
|
.RS
|
|
|
|
|
.nf
|
|
|
|
|
# modify 1614223245 dc=example,dc=com cn=admin,dc=example,dc=com IP=[::1]:47270 conn=1002
|
|
|
|
|
dn: uid=joepublic,ou=people,dc=example,dc=com
|
|
|
|
|
changetype: modify
|
|
|
|
|
replace: displayName
|
|
|
|
|
displayName: Joe Public
|
|
|
|
|
-
|
|
|
|
|
replace: entryCSN
|
|
|
|
|
entryCSN: 20210225032045.045229Z#000000#001#000000
|
|
|
|
|
-
|
|
|
|
|
replace: modifiersName
|
|
|
|
|
modifiersName: cn=admin,dc=example,dc=com
|
|
|
|
|
-
|
|
|
|
|
replace: modifyTimestamp
|
|
|
|
|
modifyTimestamp: 20210225032045Z
|
|
|
|
|
-
|
|
|
|
|
# end modify 1614223245
|
|
|
|
|
|
|
|
|
|
.fi
|
|
|
|
|
.RE
|
|
|
|
|
.LP
|
2005-06-06 23:03:18 -04:00
|
|
|
.SH FILES
|
|
|
|
|
.TP
|
|
|
|
|
ETCDIR/slapd.conf
|
|
|
|
|
default slapd configuration file
|
2007-12-03 16:57:32 -05:00
|
|
|
.TP
|
|
|
|
|
ETCDIR/slapd.d
|
|
|
|
|
default slapd configuration directory
|
2005-06-06 23:03:18 -04:00
|
|
|
.SH SEE ALSO
|
2007-12-03 16:57:32 -05:00
|
|
|
.BR slapd.conf (5),
|
2009-06-02 20:43:44 -04:00
|
|
|
.BR slapd\-config(5).
|