LSaddon::accesslog: Fix infinity loop problem handling entry renaming event with the same DN

This commit is contained in:
Benjamin Renard 2023-10-05 12:29:02 +02:00
parent 2de8c720b5
commit 1639001a3c
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -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;