Univention Bugzilla – Bug 45473
(4.2) Group blacklist for exam-master module
Last modified: 2017-10-16 21:33:58 CEST
This feature is missing in UCS@school 4.2 +++ This bug was initially created as a clone of Bug #44073 +++ When exam users are created, all group memberships of the original user object are copied. At least one customer has additional group memberships for all UCS@school users that slow down until the exam mode fails (timeout occurs). The attached, untested patch implements a UCR variable that allows the admin to specify a regular expression of group DNs that are ignored during exam user creation. The patch logs if the UMC module was unable to compile the regexp (loglevel ERROR) and which groups have been ignored (loglevel INFO). Workaround: apply patch in production system: # cd /usr/share/pyshared/univention/management/console/modules/schoolexam-master # patch -p6 < /path/to/exammode-ignore-groups.patch
This feature was already present in UCS@school 4.1R2 but did not make it into UCS@school 4.2. The feature has been ported to 4.2 with the following commits: ucs-school-umc-exam.yaml: 2e80e23ce081 | Bug #45473: Merge branch 'sschwardt/45473/42/group-blacklist-for-exam-mode' into 4.2 fe29c668af08 | Bug #45473: add entry to advisory ucs-school-umc-exam (7.0.4-15): 2e80e23ce081 | Bug #45473: Merge branch 'sschwardt/45473/42/group-blacklist-for-exam-mode' into 4.2 3acdb1a8a621 | Bug #45473: add changelog entry 3b6b45e48b43 | Bug #45473: port feature ucsschool/exam/group/ldap/blacklist/regex from 4.1R2 to 4.2 e951b2bcc6d4 | Bug #45473: fix wrong indention introduced via Bug #43019 Special note: Commit bdf34bc8e66f904f9de1c8b3fcd0582e83f21c4b fixes a block with wrong indention that has been introduced with bug #43019 (no functional impairment!). Due to the wrong indention, there is no performance gain, since group changes are always performed directly if a user object is examined. If the code block is moved to the left, it is only executed when all users have been examined and group changes are only performed once. The changes have been tested in a large U@S 4.2 customer environment. The missing UCR variable description has also been added.
Package: ucs-school-umc-exam Version: 7.0.4-16A~4.2.0.201709291554 Branch: ucs_4.2-0 Scope: ucs-school-4.2
OK: merge OK: indentation OK: YAML
UCS@school 4.2 v4 has been released. http://docs.software-univention.de/changelog-ucsschool-4.2v4-de.html If this error occurs again, please clone this bug.