Enable auditing

To enable auditing, use one of these tools:

StepsEnabling auditing using securetool

For detailed information about securetool, see Chapter 4, “Using securetool.”

  1. To enable auditing, change to the SECURITY/bin directory, and run:

    securetool domainrules --appserver_url <protocol>://<host>:<port> 
    --username pso --password pso_password --operation set 
    --rule_name auditEnable --rule_value true [--domain <domain_name>]
    

    Where:

Events are audited when a security policy decision is made, even if the decision is made within an application-level transaction that is rolled back. If you prefer to roll back audit records when a security transaction rolls back:

  1. Log the audit records in the ACDB.

  2. Set the transaction attribute for the SecureAuditWriterBean methods to “Required.”

To prevent a failure in the auditing module itself from causing a transaction to roll back, set the auditSuspendOnFailure property to true—see “Configuring general properties for a security domain”. For information about transactions, see Chapter 2, “Understanding Transactions and Component Lifecycles,” in the EAServer Programmer’s Guide.