Univention Bugzilla – Bug 54596
Ensure uniqueness of mailAlternativeAddress via UCR variable
Last modified: 2022-09-08 11:43:55 CEST
While there is an uniqueness constraint on mailPrimaryAddress within all UCS objects, the mailAlternativAddress(es) can be set the any value. We need two checks: * When a mailPrimaryAddress is set/modified we need a check, that this address isn't used yet in any mailAlternativeAddress entries * When a mailAlternativeAddress is set/modified we need a check, that ensures no other mailAlternativeAddress is using this value already as well as no mailPrimaryAddress is set to that value
As mailAlternativeAddress is also often used a mail-list feature this must be configurable via UCR.
MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/316
Via `ucr set directory/manager/mail-primary-alternative-address/uniqueness=true` uniqueness of mailAlernativeAddress is now ensured and no overlapping with mailPrimaryAddress is allowed anymore. univention-directory-manager-modules.yaml 33184c888a9a | Bug #54596: make uniqeness of mailPrimaryAddress and mailAlternativeAddress configurable univention-directory-manager-modules (15.0.13-2) 33184c888a9a | Bug #54596: make uniqeness of mailPrimaryAddress and mailAlternativeAddress configurable
(In reply to Florian Best from comment #0) > We need two checks: Where does this request come from? Please set bug attributes accordingly. (In reply to Florian Best from comment #1) > As mailAlternativeAddress is also often used a mail-list feature this must > be configurable via UCR. The current behavior is documented behavior: - https://docs.software-univention.de/manual/5.0/de/mail/management.html#mail-management-users - https://docs.software-univention.de/manual/5.0/en/mail/management.html#mail-management-users At least it should be updated. (In reply to Florian Best from comment #3) > univention-directory-manager-modules (15.0.13-2) > 33184c888a9a | Bug #54596: make uniqeness of mailPrimaryAddress and mailAlternativeAddress configurable The change is already merged but stuck in QA since 2 weeks because of vacation time.
On Philipps wish I renamed the UCR variable to `directory/manager/mail-address/uniqueness` and added a paragraph to the documentation. univention-directory-manager-modules (15.0.13-4) d8ea87e1c530 | Bug #54596: fix udm groups/group create without --set name=foo 2a231b2d1f77 | Bug #54596: document UCRv directory/manager/mail-address/uniqueness
OK: No change in behaviour on updates OK: UCRV works; uniqueness is checked OK: Documentation OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x406>