Bug 57228 - users/ldap cannot be modified using the "LDAP directory UMC module" anymore
users/ldap cannot be modified using the "LDAP directory UMC module" anymore
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-04-19 10:10 CEST by Julia Bremer
Modified: 2024-04-19 10:11 CEST (History)
0 users

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?: 1: Will affect a very few 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.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024041521000078, 2024041521000096
Bug group (optional): Regression
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2024-04-19 10:10:04 CEST
When we added the guardianInheritedRoles to UDM during Bug #57111 to all users and computer objects.
We added them to users/ldap as well, not realizing, that those users have no group property.
While creation is succesful, when trying to modify the user in the "LDAP directory" UMC module it fails with this traceback:

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

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/decorators.py", line 259, in _run
    result = self._function(*args, **kwargs)  # type: Union[BaseException, _T]
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 496, in get
    return self._get(request)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 553, in _get
    prop.lazy_load(obj)
  File "%PY3%/univention/admin/__init__.py", line 398, in lazy_load
    getattr(obj, self.lazy_loading_fn)()
  File "%PY3%/univention/admin/guardian_roles.py", line 141, in open_guardian
    self.info['guardianInheritedRoles'] = load_roles(self.lo, self['groups'] + [self['primaryGroup']])
  File "%PY3%/univention/admin/handlers/__init__.py", line 525, in __getitem__
    elif key not in self.__no_default and self.descriptions[key].editable:
KeyError: 'groups'


The guardianInheritedRoles are only fetched when using the UMC. UDM create, modify etc. works as expected. 
We need to remove the guardianInheritedRoles attribute from users/ldap. 
I think they still need guardianRoles though.