added mail alias to self service

This commit is contained in:
Roland Gruber 2019-03-03 13:18:02 +01:00
parent 82201ec448
commit 39f0730434
2 changed files with 13 additions and 1 deletions

View File

@ -6,7 +6,7 @@ March 2019
-> New self service fields: Mail routing (Local address) and Windows (Proxy-Addresses) -> New self service fields: Mail routing (Local address) and Windows (Proxy-Addresses)
-> Bind DLZ: support DNAME+XFR records and descriptions in records (requires latest LDAP schema) -> Bind DLZ: support DNAME+XFR records and descriptions in records (requires latest LDAP schema)
-> Cron jobs: added Shadow account expiration notification jobs -> Cron jobs: added Shadow account expiration notification jobs
-> New self service fields: Shadow account expiration date, mail routing address -> New self service fields: Shadow account expiration date, mail routing address, Windows mail alias
- Fixed bugs: - Fixed bugs:
-> Allow tree-only configurations without any other tab -> Allow tree-only configurations without any other tab

View File

@ -953,6 +953,7 @@ class windowsUser extends baseModule implements passwordService {
'department' => _('Department'), 'department' => _('Department'),
'departmentNumber' => _('Department number'), 'departmentNumber' => _('Department number'),
'proxyAddresses' => _('Proxy-Addresses (read-only)'), 'proxyAddresses' => _('Proxy-Addresses (read-only)'),
'otherMailbox' => _('Email alias (read-only)'),
); );
// possible self service read-only fields // possible self service read-only fields
$return['selfServiceReadOnlyFields'] = array('physicalDeliveryOfficeName', 'telephoneNumber', $return['selfServiceReadOnlyFields'] = array('physicalDeliveryOfficeName', 'telephoneNumber',
@ -2936,6 +2937,17 @@ class windowsUser extends baseModule implements passwordService {
$row->addField(new htmlOutputText(implode('<br>', $proxyAddresses), false)); $row->addField(new htmlOutputText(implode('<br>', $proxyAddresses), false));
$return['proxyAddresses'] = $row; $return['proxyAddresses'] = $row;
} }
if (in_array('otherMailbox', $fields)) {
$otherMailbox = array();
if (isset($attributes['otherMailbox'])) {
$otherMailbox = $attributes['otherMailbox'];
}
array_map('htmlspecialchars', $otherMailbox);
$row = new htmlResponsiveRow();
$row->addLabel(new htmlOutputText($this->getSelfServiceLabel('otherMailbox', _('Email alias'))));
$row->addField(new htmlOutputText(implode('<br>', $otherMailbox), false));
$return['otherMailbox'] = $row;
}
return $return; return $return;
} }