From 8ab7caf8558b50542a2ca1307399f787c00ccde1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 24 Jan 2020 14:18:35 +0100 Subject: [PATCH] fix old AD class in account-migration --- setup/inc/class.setup_cmd_ldap.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/inc/class.setup_cmd_ldap.inc.php b/setup/inc/class.setup_cmd_ldap.inc.php index adf8a1cce2..0654cf53e3 100644 --- a/setup/inc/class.setup_cmd_ldap.inc.php +++ b/setup/inc/class.setup_cmd_ldap.inc.php @@ -364,12 +364,12 @@ class setup_cmd_ldap extends setup_cmd // need to write accountExpires for never expiring account, as samba-tool classicupgrade sets it to 2038-01-19 if (!isset($entry['shadowexpire']) || !$entry['shadowexpire']) { - $entry['shadowexpire'] = accounts_ads::EXPIRES_NEVER; + $entry['shadowexpire'] = Api\Accounts\Ads::EXPIRES_NEVER; } else { if (is_null($utc_diff)) $utc_diff = date('Z'); - $entry['shadowexpire'] = accounts_ads::convertUnixTimeToWindowsTime( + $entry['shadowexpire'] = Api\Accounts\Ads::convertUnixTimeToWindowsTime( $entry['shadowexpire']*24*3600+$utc_diff); // ldap time to unixTime } }