Audit plug-ins
Operating system administrators might want to use the system audit facilities to log the LDAP audit record with the system-defined record format. To allow flexibility in logging and record formats, a plug-in interface is provided.
The server uses this interface to provide three types of auditing-related
data to the external audit plug-ins if the auditing configuration
is set to ON. The data is passed to the external
audit plug-ins through the standard plug-in's pblock interfaces, slapi_pblock_set() and slapi_pblock_get().
- Audit Configuration Information
- This information is used to inform the external audit plug-in that at least one of the audit configuration options are changed. The server expects the plug-in to determine whether to log the audit data that is associated with a particular LDAP operation, so it is important for the plug-in to have the current audit configuration information that is maintained by the server.
- Audit Event Information
- This
information is used to inform the audit plug-in that certain events
happened. Event IDs along with a message text that describes the event
are sent by the server to the audit plug-in when such events occur.
For example,
Auditing Started,Auditing Ended, orAudit Configuration Options Changed. - Audit Record Information
- This
information is the audit data that is associated with each LDAP request
received by the server. For each LDAP request, if the
ibm-auditconfiguration option is set, the server provides the header data, control structure (if available), and operation-specific data to the audit plug-in. It is up to the audit plug-in to check its own copy of the LDAP audit configuration options or its platform-specific audit policy to determine whether to log and how to log the audit data.
Note: There is no plug-in interface to the administration server audit.