Commit 5ae87ccc authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4774 Fixed objectType name + avoid infinite looping

Showing with 4 additions and 1 deletion
+4 -1
...@@ -132,7 +132,10 @@ class logging { ...@@ -132,7 +132,10 @@ class logging {
*/ */
static protected function log_into_ldap($entry) static protected function log_into_ldap($entry)
{ {
$tabObject = objects::create('auditAction'); if ($entry['objecttype'] == 'plugin/auditEvent') {
return; // Avoid infinite loop
}
$tabObject = objects::create('auditEvent');
$baseObject = $tabObject->getBaseObject(); $baseObject = $tabObject->getBaseObject();
$baseObject->fdAuditDateTime = $entry['timestamp']; $baseObject->fdAuditDateTime = $entry['timestamp'];
$baseObject->fdAuditAction = $entry['action']; $baseObject->fdAuditAction = $entry['action'];
......
  • 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