Manual Pages for UNIX Darwin command on man slapo-accesslog
MyWebUniversity

Manual Pages for UNIX Darwin command on man slapo-accesslog

SLAPO-ACCESSLOG(5) SLAPO-ACCESSLOG(5)

NAME

slapo-accesslog - Access Logging overlay

SYNOPSIS

/etc/openldap/slapd.conf

DESCRIPTION

The Access Logging overlay can be used to record all accesses to a given backend database on another database. This allows all of the activity on a given database to be reviewed using arbitrary LDAP

queries, instead of just logging to local flat text files. Configura-

tion options are available for selecting a subset of operation types to log, and to automatically prune older log records from the logging database. Log records are stored with audit schema (see below) to assure their readability whether viewed as LDIF or in raw form. CCOONNFFIIGGUURRAATTIIOONN These ssllaappdd..ccoonnff options apply to the Access Logging overlay. They should appear after the oovveerrllaayy directive. llooggddbb <> Specify the suffix of a database to be used for storing the log

records. The specified database must have already been config-

ured in a prior section of the config file, and it must have a rootDN configured. The access controls on the log database should prevent general write access. The suffix entry of the log database will be created automatically by this overlay. The log

entries will be generated as the immediate children of the suf-

fix entry. llooggooppss <> Specify which types of operations to log. The valid operation types are abandon, add, bind, compare, delete, extended, modify,

modrdn, search, and unbind. Aliases for common sets of opera-

tions are also available: wwrriitteess add, delete, modify, modrdn rreeaaddss compare, search sseessssiioonn abandon, bind, unbind aallll all operations llooggoolldd <> Specify a filter for matching against Deleted and Modified entries. If the entry matches the filter, the old contents of the entry will be logged along with the current request. llooggppuurrggee <> <> Specify the maximum age for log entries to be retained in the database, and how often to scan the database for old entries. Both the aaggee and iinntteerrvvaall are specified as a time span in days, hours, minutes, and seconds. The time format is [ddd+]hh:mm[:ss] i.e., the days and seconds components are optional but hours and

minutes are required. Except for days, which can be up to 5 dig-

its, each numeric field must be exactly two digits. For example logpurge 2+00:00 1+00:00 would specify that the log database should be scanned every day for old entries, and entries older than two days should be

deleted. When using a log database that supports ordered index-

ing on generalizedTime attributes, specifying an eq index on the rreeqqSSttaarrtt attribute will greatly benefit the performance of the purge operation. llooggssuucccceessss TTRRUUEE || FFAALLSSEE

If set to TRUE then log records will only be generated for suc-

cessful requests, i.e., requests that produce a result code of 0 (LDAPSUCCESS). If FALSE, log records are generated for all requests whether they succeed or not. The default is FALSE. EEXXAAMMPPLLEESS database bdb suffix cn=log ... index reqStart eq database bdb suffix dc=example,dc=com ... overlay accesslog logdb cn=log logops writes reads logold (objectclass=person) SSCCHHEEMMAA The aacccceesssslloogg overlay utilizes the "audit" schema described herein. This schema is specifically designed for aacccceesssslloogg auditing and is not intended to be used otherwise. It is also noted that the schema

describe here is a work in progress, and hence subject to change with-

out notice. The schema is loaded automatically by the overlay. The schema includes a number of object classes and associated attribute types as described below. There is a basic aauuddiittOObbjjeecctt class from which two additional classes, aauuddiittRReeaaddOObbjjeecctt and aauuddiittWWrriitteeOObbjjeecctt are derived. Object classes for each type of LDAP operation are further derived from these classes. This object class hierarchy is designed to allow flexible yet efficient searches of the log based on either a specific operation type's class, or on more general classifications. The definition of the aauuddiittOObbjjeecctt class is as follows: ( 1.3.6.1.4.1.4203.666.11.5.2.1

NAME 'auditObject'

DESC 'OpenLDAP request auditing' SUP top STRUCTURAL

MUST ( reqStart $ reqType $ reqSession )

MAY ( reqDN $ reqAuthzID $ reqControls $ reqRespControls $

reqEnd $ reqResult $ reqMessage $ reqReferral ) )

Note that all of the OIDs used in the logging schema currently reside under the OpenLDAP Experimental branch. It is anticipated that they will migrate to a Standard branch in the future. An overview of the attributes follows: rreeqqSSttaarrtt and rreeqqEEnndd provide the

start and end time of the operation, respectively. They use general-

izedTime syntax. The rreeqqSSttaarrtt attribute is also used as the RDN for each log entry.

The rreeqqTTyyppee attribute is a simple string containing the type of opera-

tion being logged, e.g. aadddd, ddeelleettee, sseeaarrcchh, etc. For extended opera-

tions, the type also includes the OID of the extended operation, e.g. eexxtteennddeedd((11..11..11..11))

The rreeqqSSeessssiioonn attribute is an implementation-specific identifier that

is common to all the operations associated with the same LDAP session. Currently this is slapd's internal connection ID, stored in decimal.

The rreeqqDDNN attribute is the distinguishedName of the target of the oper-

ation. E.g., for a Bind request, this is the Bind DN. For an Add request, this is the DN of the entry being added. For a Search request, this is the base DN of the search.

The rreeqqAAuutthhzzIIDD attribute is the distinguishedName of the user that per-

formed the operation. This will usually be the same name as was estab-

lished at the start of a session by a Bind request (if any) but may be altered in various circumstances. The rreeqqCCoonnttrroollss and rreeqqRReessppCCoonnttrroollss attributes carry any controls sent by the client on the request and returned by the server in the response, respectively. The attribute values are just uninterpreted octet strings.

The rreeqqRReessuulltt attribute is the numeric LDAP result code of the opera-

tion, indicating either success or a particular LDAP error code. An error code may be accompanied by a text error message which will be recorded in the rreeqqMMeessssaaggee attribute. The rreeqqRReeffeerrrraall attribute carries any referrals that were returned with the result of the request.

Operation-specific classes are defined with additional attributes to

carry all of the relevant parameters associated with the operation: ( 1.3.6.1.4.1.4203.666.11.5.2.4

NAME 'auditAbandon'

DESC 'Abandon operation' SUP auditObject STRUCTURAL MUST reqId ) For the AAbbaannddoonn operation the rreeqqIIdd attribute contains the message ID of the request that was abandoned. ( 1.3.6.1.4.1.4203.666.11.5.2.5

NAME 'auditAdd'

DESC 'Add operation' SUP auditWriteObject STRUCTURAL MUST reqMod ) The AAdddd class inherits from the aauuddiittWWrriitteeOObbjjeecctt class. The Add and Modify classes are very similar. The rreeqqMMoodd attribute carries all of the attributes of the original entry being added. (Or in the case of a Modify operation, all of the modifications being performed.) The values are formatted as

attribute:<+|-|=|#> [ value]

Where '+' indicates an Add of a value, '-' for Delete, '=' for Replace,

and '#' for Increment. In an Add operation, all of the reqMod values

will have the '+' designator. ( 1.3.6.1.4.1.4203.666.11.5.2.6

NAME 'auditBind'

DESC 'Bind operation' SUP auditObject STRUCTURAL

MUST ( reqVersion $ reqMethod ) )

The BBiinndd class includes the rreeqqVVeerrssiioonn attribute which contains the DP rtcl eso seiid n h Bn a wl a te reqMethod attribute which contains the Bind Method used in the Bind. This will be the string SSIIMMPPLLEE for LDAP Simple Binds or SSAASSLL((<>)) for SASL Binds. Note that unless configured as a global overlay, only Simple Binds using DNs that reside in the current database will be logged. ( 1.3.6.1.4.1.4203.666.11.5.2.7

NAME 'auditCompare'

DESC 'Compare operation' SUP auditObject STRUCTURAL MUST reqAssertion ) For the CCoommppaarree operation the rreeqqAAsssseerrttiioonn attribute carries the Attribute Value Assertion used in the compare request. ( 1.3.6.1.4.1.4203.666.11.5.2.8

NAME 'auditDelete'

DESC 'Delete operation' SUP auditWriteObject STRUCTURAL MAY reqOld ) The DDeelleettee operation needs no further parameters. However, the rreeqqOOlldd attribute may optionally be used to record the contents of the entry prior to its deletion. The values are formatted as attribute: value The rreeqqOOlldd attribute is only populated if the entry being deleted matches the configured llooggoolldd filter. ( 1.3.6.1.4.1.4203.666.11.5.2.9

NAME 'auditModify'

DESC 'Modify operation' SUP auditWriteObject STRUCTURAL MAY reqOld MUST reqMod ) The MMooddiiffyy operation contains a description of modifications in the

rreeqqMMoodd attribute, which was already described above in the Add opera-

tion. It may optionally contain the previous contents of any modified attributes in the rreeqqOOlldd attribute, using the same format as described above for the Delete operation. The rreeqqOOlldd attribute is only populated if the entry being modified matches the configured llooggoolldd filter. ( 1.3.6.1.4.1.4203.666.11.5.2.10

NAME 'auditModRDN'

DESC 'ModRDN operation' SUP auditWriteObject STRUCTURAL

MUST ( reqNewRDN $ reqDeleteOldRDN )

MAY reqNewSuperior ) The MMooddRRDDNN class uses the rreeqqNNeewwRRDDNN attribute to carry the new RDN of the request. The rreeqqDDeelleetteeOOllddRRDDNN attribute is a Boolean value showing TTRRUUEE if the old RDN was deleted from the entry, or FFAALLSSEE if the old RDN was preserved. The rreeqqNNeewwSSuuppeerriioorr attribute carries the DN of the new parent entry if the request specified the new parent. ( 1.3.6.1.4.1.4203.666.11.5.2.11

NAME 'auditSearch'

DESC 'Search operation' SUP auditReadObject STRUCTURAL

MUST ( reqScope $ reqDerefAliases $ reqAttrsOnly )

MAY ( reqFilter $ reqAttr $ reqEntries $ reqSizeLimit $

reqTimeLimit ) ) For the SSeeaarrcchh class the rreeqqSSccooppee attribute contains the scope of the original search request, using the values specified for the LDAP URL format. I.e. bbaassee, oonnee, ssuubb, or ssuubboorrdd. The rreeqqDDeerreeffAAlliiaasseess attribute is one of nneevveerr, ffiinnddiinngg, sseeaarrcchhiinngg, or aallwwaayyss, denoting how aliases will be processed during the search. The rreeqqAAttttrrssOOnnllyy attribute is a Boolean value showing TTRRUUEE if only attribute names were requested, or FFAALLSSEE if attributes and their values were requested. The rreeqqFFiilltteerr attribute carries the filter used in the search request. The rreeqqAAttttrr attribute lists the requested attributes if specific attributes were requested. The rreeqqEEnnttrriieess attribute is the integer count of how many entries were returned by this search request. The rreeqqSSiizzeeLLiimmiitt and rreeqqTTiimmeeLLiimmiitt attributes indicate what limits were requested on the search operation. ( 1.3.6.1.4.1.4203.666.11.5.2.12

NAME 'auditExtended'

DESC 'Extended operation' SUP auditObject STRUCTURAL MAY reqData ) The EExxtteennddeedd class represents an LDAP Extended Operation. As noted above, the actual OID of the operation is included in the rreeqqTTyyppee attribute of the parent class. If any optional data was provided with

the request, it will be contained in the rreeqqDDaattaa attribute as an unin-

terpreted octet string. NNOOTTEESS The Access Log implemented by this overlay may be used for a variety of other tasks, e.g. as a ChangeLog for a replication mechanism, as well as for security/audit logging purposes. FILES /etc/openldap/slapd.conf default slapd configuration file

SEE ALSO

ssllaappdd..ccoonnff(5). AACCKKNNOOWWLLEEDDGGEEMMEENNTTSS This module was written in 2005 by Howard Chu of Symas Corporation.

OpenLDAP 2.3.27 2006/08/19 SLAPO-ACCESSLOG(5)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™