Bug 31381 - Temporary objects with special object class should not be counted in license check
Temporary objects with special object class should not be counted in license ...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 3.1
Other Linux
: P5 normal (vote)
: UCS@school 3.1 R2
Assigned To: Sönke Schwardt-Krummrich
Felix Botner
: interim-2
Depends on: 31165 31167
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-16 16:52 CEST by Sönke Schwardt-Krummrich
Modified: 2013-06-07 21:39 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2013-05-16 16:52:46 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.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-05-21 15:06:33 CEST
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
Comment 2 Felix Botner univentionstaff 2013-05-22 16:56:04 CEST
/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??).
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2013-05-22 17:07:07 CEST
As previously discussed a dependency in ucs-school-umc-exam (1.0.4-2) has been added → RESOLVED
Comment 4 Felix Botner univentionstaff 2013-05-22 17:31:43 CEST
OK
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2013-06-07 21:39:20 CEST
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".