Bug 57397 - udm-remap-country-from-st-to-c does NOT put 'c' to 'self-service/ldap_attributes'
Summary: udm-remap-country-from-st-to-c does NOT put 'c' to 'self-service/ldap_attribu...
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.2-1-errata
Assignee: Florian Best
QA Contact: Johannes Lohmer
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-21 11:21 CEST by Finn David
Modified: 2025-04-16 14:09 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024061921000192
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments
Traceback (3.49 KB, text/x-log)
2024-06-21 11:21 CEST, Finn David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Finn David univentionstaff 2024-06-21 11:21:40 CEST
Created attachment 11220 [details]
Traceback

# UCS: 5.0-8 errata1060
# /usr/share/univention-directory-manager-tools/udm-remap-country-from-st-to-c was executed via the UMC during a system diagnosis


# Problem:
When a user tries to change the country via the self-service a traceback appears in /var/log/univention/management-console-module-passwordreset.log (see attachment).

# Investigation
I noticed that the ucr variable 'self-service/ldap_attributes' was not modified by the udm-remap-country-from-st-to-c script. After manually adjusting the variable the user was able to change the country via the self-service:
ucr set self-service/ldap_attributes='jpegPhoto,mail,telephoneNumber,roomNumber,departmentNumber,st,homePhone,mobile,homePostalAddress,c'
Comment 2 Florian Best univentionstaff 2025-04-02 12:10:46 CEST
As many systems have already upgraded to UCS 5.2 we have to fix this via an erratum.

The UCR variable default has been changed to include "c" and already set variables are updates to include "c" as well if they include "st".

univention-self-service.yaml
e74d8ceb24f4 | fix(self-service): add "c" to allowed list of LDAP attributes to be changed in default profile view

univention-self-service (7.1.0)
e74d8ceb24f4 | fix(self-service): add "c" to allowed list of LDAP attributes to be changed in default profile view

There is another bug (Bug #57398) blocking this for certain users.
Comment 3 Johannes Lohmer univentionstaff 2025-04-02 15:05:52 CEST
errata yaml ok
reproduced ok
fixed ok
debian package ok
code-review ok
Comment 4 Arvid Requate univentionstaff 2025-04-16 14:09:59 CEST
<https://errata.software-univention.de/#/?erratum=5.2x71>