Bug 56974 - Extended attributes that are not shown in UI cannot be filled using a user template
Extended attributes that are not shown in UI cannot be filled using a user te...
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-01-10 20:12 CET by Thorsten
Modified: 2024-01-10 21:41 CET (History)
1 user (show)

See Also:
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten univentionstaff 2024-01-10 20:12:41 CET
Situation: 

You have an an extended attribute, e.g. 

cn=oxContextUser,cn=open-xchange,cn=custom attributes,cn=univention,$(ucr get ldap/base)

with the setting

disableUDMWeb: True

You have an user template defining value for the extended attribute above.

Creating a new user in the UMC will not apply the value from the user template due to the attribute being not shown in the UMC.

Florian suggested this (currently untested) fix:

diff --git management/univention-directory-manager-modules/modules/univention/admin/modules.py management/univention-directory-manager-modules/modules/univention/admin/modules.py
index 65204f9a04c..a89080266ae 100644
--- management/univention-directory-manager-modules/modules/univention/admin/modules.py
+++ management/univention-directory-manager-modules/modules/univention/admin/modules.py
@@ -538,7 +538,7 @@ def update_extended_attributes(lo, module, position):
                     groupPosition=groupPosition,
                     is_app_tab=any(option in [key for (key, value) in getattr(module, 'options', {}).items() if value.is_app_option] for option in attrs.get('univentionUDMPropertyOptions', [])),
                 ))
-            else:
+            elif module.module != 'settings/usertemplate':
                 for tab in getattr(module, 'layout', []):
                     tab.remove(pname)