Univention Bugzilla – Bug 47807
Create demo school and portal when installing UCS@School
Last modified: 2018-11-16 11:48:22 CET
When installing UCS@School we want to create a demo school (including portal and some test users) for testing and demonstration purposes.
Content of linked Trello card: Beispiel Implementierung findet sich hier: schule-univention.de Heute in der Besprechung festgehalten: - Erstellung eines zusätzlichen Portals - Titel "Demoportal" - Standardmäßige Verknüpfung an Master-Server - Vier Kategorien (Kommunikation, Kollaboration, Kreativität, Verwaltung) - Folgende Kacheln je Kategorie: Kommunikation (Mail, Chat, Kalender) Kollaboration (Ressourcen buchen (nur Lehrergruppe), Vertretungsplan, Pädagogische Funktionen (nur Lehrergruppe)) Kreativität (Eigene Dateien, Tauschverzeichnis, Online Arbeiten) Verwaltung (Passwort zurücksetzen, Schuladministration (nur Schuladmingruppe), Benutzerverwaltung (nur Schuladmingruppe), Plattformverwaltung (nur Domänenadmingruppe)) - Die Kacheln verlinken zunächst auf eine erklärende Seite
Package: ucs-school-metapackage Version: 11.0.2-1A~4.3.0.201810241059 A Demo school including test users for student, teacher and admin is installed on a system (only master or singlemaster), if the ucr variable ucsschool/join/create_demo is set to yes. Also a portal will be installed and activated on the master. The easiest way to test this is to set the variable to true, before installing the new package. The joinscript will then create the demo school/portal
Reopen as discussed
Package: ucs-school-metapackage Version: 11.0.2-2A~4.3.0.201811071015 Branch: ucs_4.3-0 Scope: ucs-school-4.3 - Background image shrinked from 4MB to ~250KB - Tiles have their names as description - Merged Collaboration and Communication category - Passwort reset is now self service password reset for everyone - ucsschool/join/create_demo is now set to no if the demo school was created - use makepasswd to create password
Package: ucs-school-umc-installer Version: 6.0.0-4A~4.3.0.201811071054 Branch: ucs_4.3-0 Scope: ucs-school-4.3 Add info text to UCS@school installer
Package: ucs-school-metapackage Version: 11.0.2-3A~4.3.0.201811081338 Branch: ucs_4.3-0 Scope: ucs-school-4.3 Add demo class and add student to it
No demo school was created in multi server environments and the demo class had no school prefix. I also set the password length to 16, 8 seemed a little bit small. [4.3 606e35b2d] Bug #47807: Fix multiserver demo portal installation [4.3 72ba8e2b0] Bug #47807: Fix school class creation If you're ok with these changes please update the yaml. Otherwise it looks good
Thanks for the fixes. Tried out with the changes and looks good to me. Updated advisory
I don't think we can store the password for the demo users in ucr :( See bug 48127 I guess the password needs to be stored under /etc/demoschool.secret Or maybe it shouldn't be stored at all and we tell the admin to reset it? Sorry for not catching that sooner
Aye, but I think that should not be a problem in that case. The demo school is supposed to be configured when UCS@school is first installed. There should be no users around in the system to take advantage of that. First the password was supposed to be 'ucsschool' and exposed publicly on the tile placeholder page. The UCRV is just a convienient way to store the password less public but still easily accessible for the admin (especially over UMC). If theoretical access to the demo school would be a problem we could of course put the password in a more secure, but less accessible place.
Package: ucs-school-metapackage Version: 11.0.2-6A~4.3.0.201811121328 Branch: ucs_4.3-0 Scope: ucs-school-4.3 Password now in /etc/demoschool.secret Admin tile now visible for everyone
http://jenkins.knut.univention.de:8080/job/UCSschool-4.3/job/Install%20Singleserver/283/Config=s4,TestGroup=base1/testReport/junit/01_base/25check-permissions-etc-secret/test/ Test failed (Checking for *.secret files in /etc that are read- or writeable by group "other") [2018-11-12 23:37:38.251804] -rw-r--r-- 1 root root 17 Nov 12 23:28 /etc/demoschool.secret
Package: ucs-school-metapackage Version: 11.0.2-7A~4.3.0.201811130939 Branch: ucs_4.3-0 Scope: ucs-school-4.3 Set file permission of demoschool.secret to 640
Demoschool is installed on new installations: OK Demoschool is not installed on new installations if deactivated: OK Demoschool is not installed during update: OK Demoschool is mentioned in installer: OK Demo Protal works: OK, Looks good :) Demouser work: OK
The name of the demo OU is "DEMOSCHOOL".
UCS@school 4.3 v6 has been released. https://docs.software-univention.de/changelog-ucsschool-4.3v6-de.html If this error occurs again, please clone this bug.