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
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
- 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
Add info text to UCS@school installer
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.
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.
Password now in /etc/demoschool.secret
Admin tile now visible for everyone
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
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.
If this error occurs again, please clone this bug.