Bug 54596 - Ensure uniqueness of mailAlternativeAddress via UCR variable
Ensure uniqueness of mailAlternativeAddress via UCR variable
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-2-errata
Assigned To: Florian Best
Dirk Wiesenthal
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-25 16:01 CET by Florian Best
Modified: 2022-09-08 11:43 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2022-03-25 16:01:10 CET
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
Comment 1 Florian Best univentionstaff 2022-03-25 16:08:09 CET
As mailAlternativeAddress is also often used a mail-list feature this must be configurable via UCR.
Comment 3 Florian Best univentionstaff 2022-07-14 18:53:05 CEST
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
Comment 4 Philipp Hahn univentionstaff 2022-08-03 14:53:14 CEST
(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.
Comment 6 Florian Best univentionstaff 2022-08-26 11:32:37 CEST
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
Comment 7 Dirk Wiesenthal univentionstaff 2022-08-31 12:23:54 CEST
OK: No change in behaviour on updates
OK: UCRV works; uniqueness is checked
OK: Documentation
OK: YAML