DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
739 stars 259 forks source link

Add simple script to force admin and judgehost passwords. #2834

Closed meisterT closed 6 days ago

meisterT commented 6 days ago

This will read from restapi.secret and initial_admin_password.secret and reset the DB state to match these passwords.

This can be especially useful if you are importing a database from a previous contest and do not want to do update passwords manually.

vmcj commented 6 days ago

Isn't there a way to either add this to the dj_setup_database as it also has the option to load the dump or in the symfony command (which you use) so they are close together? That makes testing it also easier IMO.

eldering commented 6 days ago

Isn't there a way to either add this to the dj_setup_database as it also has the option to load the dump or in the symfony command (which you use) so they are close together? That makes testing it also easier IMO.

Not exactly what's asked for, but I was also working on an option in dj_setup_database to reset the DB user password stored in etc/dbpassword.secret.