From 8b4507af572eaaf92889c43c6a4de39ccae2567c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Thu, 9 May 2019 09:39:13 +0200 Subject: [PATCH] Fix undefined action in LDAP sync command; see #5860 --- inc/authldap.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/authldap.class.php b/inc/authldap.class.php index 6430621d7b..39ecead9a9 100644 --- a/inc/authldap.class.php +++ b/inc/authldap.class.php @@ -1845,7 +1845,7 @@ class AuthLDAP extends CommonDBTM { 'timestamp' => $user_infos[$userfound[$field_for_sync]]['timestamp'], 'date_sync' => $tmpuser->fields['date_sync'], 'dn' => $user['user_dn']]; - } else if (($values['action'] == self::ACTION_ALL) + } else if (($values['mode'] == self::ACTION_ALL) || (($ldap_users[$user[$field_for_db]] - strtotime($user['date_sync'])) > 0)) { //If entry was modified or if script should synchronize all the users $glpi_users[] = ['id' => $user['id'], -- GitLab