Bug 39292

Summary: update of displayName runs too often
Product: UCS Reporter: Daniel Tröder <troeder>
Component: UMC - UsersAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann, markus.daehlmann, meybohm, schwardt, walkenhorst
Version: UCS 4.0   
Target Milestone: UCS 4.0-3-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): External feedback
Max CVSS v3 score:
Bug Depends on: 38385    
Bug Blocks:    

Description Daniel Tröder univentionstaff 2015-08-31 19:22:31 CEST
+++ This bug was initially created as a clone of Bug #38385 +++

The diplayName is reset if any of a users main properties is changed. As the automatic update causes problems in UCS@school (teachers want to update passwords but cannot, because ACLs forbid them to update displayName, cn, sn as well), the code should be changed for now to either take into account the permissions of the logged in user or to only change the displayName if first and last name were changed.
Comment 1 Daniel Tröder univentionstaff 2015-08-31 19:30:00 CEST
Maybe this should go to UCS@school?

Commit 63357 makes the user handler set the displayname only if first or last name were changed.

YAML (r63358): 2015-08-31-univention-directory-manager-modules.yaml
Comment 2 Stefan Gohmann univentionstaff 2015-09-01 07:41:09 CEST
ucs-test: OK

Manual tests: OK

@school tests: OK

YAML: OK (+ r63360)
Comment 3 Janek Walkenhorst univentionstaff 2015-09-01 11:53:53 CEST
<http://errata.univention.de/ucs/4.0/295.html>