Bug 54155 - udm/add (navigation): KeyError: 'displayName'
udm/add (navigation): KeyError: 'displayName'
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-26 11:50 CET by Maximilian Janßen
Modified: 2022-06-17 12:30 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: 2022061421000427, 2021040921000362, 2021032221000311, 2021022821000053, 2022060221000459
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2021-11-26 11:50:55 CET
similar Bugs:
Bug #49470 - schoolwizards/schools/add (schoolwizards/schools): KeyError: 'displayName'
Bug #46819 - udm/syntax/choices (users/user): KeyError: 'displayName'


Version: 4.4-7 errata947 (Blumenthal)

Remark: Hi,
Trying to add a ldap search account as shown here: https://help.univention.com/t/cool-solution-ldap-search-user-simple-authentication-account/11818
If you want me to test something, let me know.
BR,
****

Error: 
Internal server error during "udm/add (navigation)".
Request: udm/add (navigation)

  File "%PY2.7%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 402, in _thread
    dn = module.create(properties, container=options.get('container'), superordinate=options.get('superordinate'))
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 566, in create
    obj.create()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 557, in create
    dn = self._create(response=response, serverctrls=serverctrls)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1241, in _create
    al.extend(self._ldap_modlist())
  File "%PY2.7%/univention/admin/handlers/users/ldap.py", line 223, in _ldap_modlist
    self._check_password_complexity(pwhistoryPolicy)
  File "%PY2.7%/univention/admin/handlers/users/ldap.py", line 302, in _check_password_complexity
    pwdCheck.check(self['password'], username=self['username'], displayname=self['displayName'])
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 478, in __getitem__
    elif key not in self.__no_default and self.descriptions[key].editable:
KeyError: 'displayName'

Role: domaincontroller_master
Comment 1 Maximilian Janßen univentionstaff 2021-11-26 13:52:10 CET
Reported again:
Version: 4.4-7 errata924 (Blumenthal)
Remark: Create simple auth account.
same traceback
Comment 2 Christina Scheinig univentionstaff 2022-06-15 09:09:53 CEST
Also happend in a customer environment during remote session. Is there a workaround? Otherwise I will raise the priority.
I had not the time to test the udm command on the terminal.
Comment 3 Christina Scheinig univentionstaff 2022-06-15 09:10:48 CEST
Version was 4.4-8 errata 979
Comment 4 Christina Scheinig univentionstaff 2022-06-15 15:12:44 CEST
Could be also related to Bug 52446