Commit 7b12deab authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4774 new try at fixing audit event logging

Showing with 3 additions and 1 deletion
+3 -1
......@@ -132,18 +132,20 @@ class logging {
*/
static protected function log_into_ldap($entry)
{
global $config;
if ($entry['objecttype'] == 'plugin/auditEvent') {
return; // Avoid infinite loop
}
$tabObject = objects::create('auditEvent');
$baseObject = $tabObject->getBaseObject();
$baseObject->fdAuditDateTime = $entry['timestamp'];
$baseObject->fdAuditDateTime = new DateTime('@'.$entry['timestamp']);
$baseObject->fdAuditAction = $entry['action'];
$baseObject->fdAuditAuthorDN = $entry['user'];
$baseObject->fdAuditObjectType = $entry['objecttype'];
$baseObject->fdAuditObject = $entry['object'];
$baseObject->fdAuditAttributes = $entry['changes'];
$baseObject->fdAuditResult = $entry['result'];
$baseObject->base = $config->current['BASE'];
$message = $tabObject->check();
if (count($message) == 0) {
$tabObject->save();
......
  • bmortier @bmortier

    mentioned in issue #1514

    By Côme Chilliet on 2017-09-02T15:28:49 (imported from GitLab)

    ·

    mentioned in issue #1514

    By Côme Chilliet on 2017-09-02T15:28:49 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in issue #4774 (closed)

    By bmortier on 2018-10-04T19:26:03 (imported from GitLab)

    ·

    mentioned in issue #4774 (closed)

    By bmortier on 2018-10-04T19:26:03 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment