Bug 58832 - UDM doesn't release mailPrimaryAddress lock on modification of attribute
Summary: UDM doesn't release mailPrimaryAddress lock on modification of attribute
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.0-10-errata
Assignee: Jürn Brodersen
QA Contact: Felix Botner
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-21 16:22 CET by Jürn Brodersen
Modified: 2025-11-26 15:15 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.571
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2025-11-21 16:22:58 CET
+++ This bug was initially created as a clone of Bug #58828 +++

Clone for 5.0

udm doesn't release mailPrimaryAddress lock if address is already taken

How to reproduce:
```
udm users/user create --set username=mail1 --set lastname=mail1 --set password=univention --set mailPrimaryAddress=mail@foo.test
udm settings/lock list --filter name=mail@foo.test # Not locked
udm users/user create --set username=mail2 --set lastname=mail2 --set password=univention --set mailPrimaryAddress=mail@foo.test # Error
udm settings/lock list --filter name=mail@foo.test # Locked!
```

Changing the mailPrimaryAddress on the first user doesn't release the lock. That means that no other user can use the address until the lock has been removed manually. (Deleting the user while they still have "mail@foo.test" set, seems to clean, the lock, up)
Comment 1 Felix Botner univentionstaff 2025-11-26 13:14:26 CET
OK - tests
OK - univention-directory-manager-modules
OK - advisory
Comment 2 Dirk Wiesenthal univentionstaff 2025-11-26 15:15:09 CET
<https://errata.software-univention.de/#/?erratum=5.0x1354>