diff --git a/tine20/Courses/Import/DivisCourses.php b/tine20/Courses/Import/DivisCourses.php index e22626ca3f..4cd5c8dae5 100644 --- a/tine20/Courses/Import/DivisCourses.php +++ b/tine20/Courses/Import/DivisCourses.php @@ -609,6 +609,17 @@ protected function _processStudents(): void $account->accountFirstName = $raw[2]; $account->accountLastName = $raw[1]; $applyTwig = true; + + if (null === $cfg) { + $cfg = Courses_Controller_Course::getInstance()->_getNewUserConfig($course); + $sambaCfg = $cfg['samba']; + $sambaSAM = $account->sambaSAM; + $sambaSAM['homePath'] = $sambaCfg['homePath'] ?: ''; + $sambaSAM['homeDrive'] = $sambaCfg['homeDrive'] ?: ''; + $sambaSAM['logonScript'] = $sambaCfg['logonScript'] ?: ''; + $sambaSAM['profilePath'] = $sambaCfg['profilePath'] ?: ''; + $account->sambaSAM = $sambaSAM; + } } if ($applyTwig) {