Bug 31229 - schoolexam-master should call ldap-group-to-file after group membership changes.
schoolexam-master should call ldap-group-to-file after group membership changes.
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
Arvid Requate
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-29 14:35 CEST by Arvid Requate
Modified: 2013-06-07 21:40 CEST (History)
1 user (show)

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 Arvid Requate univentionstaff 2013-04-29 14:35:44 CEST
Whenever schoolexam-master changes group memberships, it should run univention-pam/ldap-group-to-file.py afterwards. We should implement this in a way, that this is performed only once e.g. per exam-start and not for each and every membership change separately.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-05-07 15:15:12 CEST
This should be called on master and slave after exam replication is complete.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2013-05-23 11:50:24 CEST
I think in multi server environments there is no need to call ldap-group-to-file.py on the DC master after starting the exam mode. Calling this script on the DC slave (after replication is complete) should be sufficient.
In a single server environment the group cache has to be updated, to provide valid group memberships.

The python backend of ucs-school-umc-exam now updates the group cache after exam user replication is complete (and enabled via UCR). This should also work if 
"exam server" == "dc master".

An exit condition has been added to the replication check. After 5 minutes the replication check stops and the exam creation continues.

No special changelog entry necessary (intermediate version).

ucs-school-umc-exam (1.0.3-1) unstable; urgency=low

# grep nss /var/log/univention/management-console-module-schoolexam.log 
23.05.13 11:36:36.020  MODULE      ( INFO    ) : Updating local nss group cache...
23.05.13 11:36:36.970  MODULE      ( INFO    ) : Update of local nss group cache finished successfully.
Comment 3 Arvid Requate univentionstaff 2013-05-28 13:36:39 CEST
Verified:
 * code checks related UCR variables and then executes the script.
 * Waiting for user repliaction now has a 5min timeout with a useful error message.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2013-06-07 21:40:14 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".