Univention Bugzilla – Bug 31381
Temporary objects with special object class should not be counted in license check
Last modified: 2013-06-07 21:39:20 CEST
The exam mode should should set the attribute univentionObjectFlag to "temporary" for all exam user objects. See also Bug 31167. +++ This bug was initially created as a clone of Bug #31165 +++ For UCS@school several temporary exam users have to be created that should not be taken into account by the license check. Proposal for a generic solution: The univention LDAP schema should be extended by a new generic auxiliary objectclass (e.g. univentionTemporaryObject). Each object containing the objectclass (univentionTemporaryObject) will not be taken into account by the license check. It still has to be checked what kind of attributes the objectclass should provide.
schoolexam-master now appends the attribute value univentionObjectFlag=temporary for every exam user. ucs-school-umc-exam (1.0.2-1) unstable; urgency=low Changelogentry not neccessary. root@slave:~# univention-ldapsearch -LLL uid=exam* uid univentionObjectFlag dn: uid=exam-anton100,cn=examusers,ou=gsmitte,dc=nstx,dc=local uid: exam-anton100 univentionObjectFlag: temporary dn: uid=exam-anton101,cn=examusers,ou=gsmitte,dc=nstx,dc=local uid: exam-anton101 univentionObjectFlag: temporary
/var/log/univention/management-console-module-schoolexam-master.log (ucs@school master): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolexam-master/__init__.py", line 257, in create_exam_user ldap_admin_write.add(exam_user_dn, al) File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 391, in add raise univention.admin.uexceptions.ldapError, _err2str(msg) ldapError: Undefined attribute type: univentionObjectFlag: attribute type undefined Please add a appropriate package dependency to univention-ldap-config 9.0.27-3 in ucs-school-umc-exam-master (and or ucs-school-umc-exam??).
As previously discussed a dependency in ucs-school-umc-exam (1.0.4-2) has been added → RESOLVED
OK
UCS@school 3.1 R2 has been released: http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2.pdf If this error occurs again, please use "Clone This Bug".