Univention Bugzilla – Bug 54085
unable to move "simple authentication account" to another container
Last modified: 2022-03-23 14:14:39 CET
UCS: 5.0-0 errata157 noticed during UCS-training 2021-11 steps to reproduce: - create a simple authentication account (see https://help.univention.com/t/cool-solution-ldap-search-user-simple-authentication-account/11818) - try to move the account to another container using the LDAP module result: the attempt fails, a traceback is shown expected result: assuming the product allows the movement of those objects the attempt should succeed. workaround: delete the original account and recreate it at the desired location. As the applications that are using this account have to be adjusted anyway to use the new DN there is most likely more effort at their side than on the steps to recreate the account in UCS
Interner Server-Fehler in "udm/progress (navigation)". Request: udm/progress (navigation) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 344, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 247, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "/usr/lib/python3/dist-packages/univention/management/console/modules/mixins.py", line 158, in progress ret = progress_obj.poll() File "/usr/lib/python3/dist-packages/univention/management/console/modules/mixins.py", line 102, in poll six.reraise(*self.exc_info) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 431, in _thread for res in function(self, iterator, *nones): File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 375, in move module.move(object, options['container']) File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 588, in move obj.move(dest) File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 805, in move res = n(self._move(newdn, ignore_license=ignore_license)) File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/ldap.py", line 315, in _move subelements = self.lo.search(base=self.dn, scope='one', attr=[b'objectClass']) # FIXME: identify may fail, but users will raise decode-exception File "/usr/lib/python3/dist-packages/univention/admin/uldap.py", line 669, in search return self.lo.search(filter, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response) File "/usr/lib/python3/dist-packages/univention/uldap.py", line 208, in _decorated return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/univention/uldap.py", line 516, in search res = self.lo.search_ext_s(base, ldap_scope, filter, attr, serverctrls=serverctrls, clientctrls=None, timeout=timeout, sizelimit=sizelimit) File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 1259, in search_ext_s return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs) File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 1197, in _apply_method_s return func(self,*args,**kwargs) File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 845, in search_ext_s msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit) File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 841, in search_ext timeout,sizelimit, File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 313, in _ldap_call result = func(*args,**kwargs) TypeError: ('attrs_from_List(): expected string in list', b'objectClass')
Patch in https://git.knut.univention.de/univention/ucs/-/merge_requests/284.
Fixed in: univention-directory-manager-modules.yaml 5c324d315478 | Bug #54085: fix moving of users/ldap objects univention-directory-manager-modules (15.0.11-32) 9a0a00b1d7a6 | fixup! Bug #54085: fix moving of users/ldap objects 5c324d315478 | Bug #54085: fix moving of users/ldap objects
YAML: OK Code review: OK Manual tests: OK VERIFIED
<https://errata.software-univention.de/#/?erratum=5.0x259>