Univention Bugzilla – Bug 41568
Make it possible to start exam for student not underneath of any OU
Last modified: 2016-12-12 13:10:26 CET
I started a exam with the student uid=test4,cn=users,dc=school,dc=local - which is not underneath of any OU. Die Ausführung des Kommandos schoolexam-master/create-exam-user ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 283, in execute function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 190, in _response return function(self, request) File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 140, in wrapper_func return func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam-master/__init__.py", line 152, in create_exam_user exam_user_dn = "uid=%s,%s" % (exam_user_uid, self.examUserContainerDN(ldap_admin_write, ldap_position, user.school)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam-master/__init__.py", line 109, in examUserContainerDN ldap_admin_write.searchDn('(objectClass=organizationalRole)', examUsers, scope='base') File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 381, in searchDn raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) ldapError: Invalid DN syntax: invalid DN
The problem here is that school is None which results in a LDAP DN of "cn=examusers,None".
The exam user is created in the school where the exam is written if she doesn't lie in any OU. ucs-school-umc-exam.yaml: r74318 | YAML Bug #41568 Bug #41562 ucs-school-umc-exam (6.0.7-7): r74316 | Bug #41568: Make it possible to start exam for student not underneath of any OU
OK: code change OK: manual test: # univention-ldapsearch -xLLL 'uid=*stud' dn dn: uid=stud,cn=users,dc=uni,dc=dtr dn: uid=exam-stud,cn=examusers,ou=SchuleEinz,dc=uni,dc=dtr OK: automated tests: r74745: added Students created directly under cn=users,$ldap_base to - 101_exam_mode - 101_exam_mode_group_members - 101_exam_mode_settings OK: advisory
UCS@school 4.1 R2 v9 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v9-de.html