Univention Bugzilla – Bug 56974
Extended attributes that are not shown in UI cannot be filled using a user template
Last modified: 2024-01-10 21:41:20 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)