Univention Bugzilla – Bug 41162
Add migrationscript for UCS@school 4.1 R2
Last modified: 2016-07-27 12:01:35 CEST
The structure in UCS@school 4.1R2 will change. We need to create a migration scripts which: * attaches the object classes / options to all user objects * inserts the OU into the ucsschoolSchool attribute of all users
Created attachment 7642 [details] migration script Attached is a working script which does the required things.
Looks good on a short visual check.
Script has been improved a little bit. Added --dry-run and --verbose. The latter one prints the LDAP DN and LDAP modlist to stdout. The script is placed in /usr/share/ucs-school-import/scripts with filename ucs-school-migrate-users-to-4.1R2. The script is called automatically by join script 35ucs-school-import.inst. If this is not desired (e.g. due to high number of LDAP changes during update), the UCR variable "ucsschool/update/users/41R2" may be set to "false" to disable the automatic calling of the script. In this case the execution of the script has to be performed manually later on, otherwise UCS@school may not behave correctly. The output of the script is also copied to /var/log/univention/ucs-school-migrate-users-to-4.1R2.log by the join script for possible later analysis. ucs-school-import.yaml has been updated. A new section has been added to release-notes-ucsschool-4.1R2v1-de.xml describing the required steps to disable the automatic user object migration. release-notes-ucsschool-4.1R2v1-de.xml: r69860 | Bug #41162: added section for automatic LDAP user object migration ucs-school-import (14.0.3-1): r69858 | Bug #41162: added user migration script ucs-school-migrate-users-to-4.1R2 ucs-school-import.yaml: r69859 | Bug #41162: updated yaml for ucs-school-import r69861 | Bug #41162: updated yaml for ucs-school-import
OK: migration of users OK: migration of group OK: singlemaster OK: multiserver master OK: skip with UCRV ucsschool/update/ldap/41R2=false OK: YAML
Maybe we should add the objectclass ucsschoolTeacher to administrator users?
Yes, as discussed, admins behaved like a "teacher user" most of the time before UCS@school 4.1R2. To regain that behavior, I added the objectclass via the migrations script. ucs-school-import (14.0.11-2): r70238 | Bug #41162: add ucsschoolTeacher class to OU admins in ucs-school-migrate-objects-to-4.1R2
(In reply to Sönke Schwardt-Krummrich from comment #6) > Yes, as discussed, admins behaved like a "teacher user" most of the time > before UCS@school 4.1R2. To regain that behavior, I added the objectclass > via the migrations script. > > ucs-school-import (14.0.11-2): > r70238 | Bug #41162: add ucsschoolTeacher class to OU admins in > ucs-school-migrate-objects-to-4.1R2 OK
UCS@school 4.1 R2 has been released: http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf If this error occurs again, please use "Clone This Bug".