Univention Bugzilla – Bug 35660
traceback in users wizard when opening a school admin
Last modified: 2016-06-28 18:28:14 CEST
A user underneath of cn=admins,cn=users,ou=$OU,$ldap_base is displayed as Teacher in the Users Wizard. schoolldap.py: def isTeacher(self, userDN): return userDN.endswith(self.teachers) or userDN.endswith(self.teachersAndStaff) or userDN.endswith(self.admins) When opening the user to edit her a traceback is shown: Die Ausführung des Kommandos schoolwizards/users/get ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 218, in execute func( request ) File "/usr/lib/pymodules/python2.6/ucsschool/lib/schoolldap.py", line 204, in wrapper_func return func( *args, **kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py", line 118, in _decorated ret = func(self, request, *a, **kw) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py", line 177, in _get_obj obj = obj.from_dn(obj.old_dn, obj.school, ldap_user_read) File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 748, in from_dn udm_obj = udm_modules.lookup(cls._meta.udm_module, None, lo, filter=cls._meta.udm_filter, base=dn, scope='base', superordinate=superordinate)[0] File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 801, in lookup tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 2741, in lookup for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit): File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 347, in search raise univention.admin.uexceptions.noObject, _err2str(msg) noObject: No such object This happens because the backend does not work with real DNs but calculates the DN of that object using cn=teachers,… as parent container.
*** Bug 35200 has been marked as a duplicate of this bug. ***
This was fixed by Bug #41293. *** This bug has been marked as a duplicate of bug 41293 ***
OK: duplicate of Bug #41293, which was solved in the scope of the release 4.1 R2. If this should be solved for 3.2, please reopen.
UCS@school 4.1 R2 has been released: http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf If this error occurs again, please use "Clone This Bug".