From 1639001a3c3d9bf4774be4154148d9291c628d1d Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 5 Oct 2023 12:29:02 +0200 Subject: [PATCH] LSaddon::accesslog: Fix infinity loop problem handling entry renaming event with the same DN --- src/includes/addons/LSaddons.accesslog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/addons/LSaddons.accesslog.php b/src/includes/addons/LSaddons.accesslog.php index 6683b6f3..256cc883 100644 --- a/src/includes/addons/LSaddons.accesslog.php +++ b/src/includes/addons/LSaddons.accesslog.php @@ -180,7 +180,7 @@ function getEntryAccessLog($dn, $start_date=null, $include_ldapsaisie=true) { foreach($entries as $entry) { mapAccessLogEntry($entry); $logs[] = $entry; - if (isset($entry['new_dn'])) { + if (isset($entry['new_dn']) && $entry['new_dn'] != $dn) { $new_dn = $entry['new_dn']; $rename_date = LSldap::formatDate($entry['start']); break;