server/admin
Pierre-Olivier Mercier 771627a0da pki: fix team association, complement to 68e5c4cd2b
The fix introduced in the referenced commit was not working.

This time, it has been tested with the following commands:

	# Associate all certificate to a team
	curl http://localhost:8081/api/certs/ | jq -r .[].id | while read CERTID; do curl -X PUT -d '{"id_team":1}' http://localhost:8081/api/certs/$CERTID; done

	# For each certificate associated with the team, try to connect to the server with each certificate. Report failing certificates.
	curl -s http://localhost:8081/api/teams/1/certificates | jq -r '.[] | .id + " " + .password' | while read CERTID PASSWORD; do curl -sf --cert-type P12 --cert $CERTID.p12:$PASSWORD https://fic.srs.epita.fr/my.json > /dev/null || echo $CERTID; done
2019-02-06 03:40:49 +01:00
..
api admin: allow certid to finish by .p12, to permit downloading .p12 file 2019-02-06 03:40:49 +01:00
pki pki: fix team association, complement to 68e5c4cd2b 2019-02-06 03:40:49 +01:00
static admin: allow certid to finish by .p12, to permit downloading .p12 file 2019-02-06 03:40:49 +01:00
sync sync: avoid useless line break at the end of markdown processing 2019-02-06 03:40:49 +01:00
.gitignore admin: new route to display import report 2018-01-17 18:52:42 +01:00
fill_teams.sh fill_teams.sh: add a new option to generate password 2019-01-21 03:08:05 +01:00
index.go admin: thanks to ng-base, don't need other modifications 2019-02-06 03:40:48 +01:00
main.go settings: add canJoinTeam parameter 2019-02-06 03:40:49 +01:00
static.go admin: add a page to view resolution video 2019-01-21 09:58:36 +01:00
team-names.txt Add a script to fill DB with teams 2016-01-21 05:33:59 +01:00