Hi Guillaume,
Sorry that this message wasn't replied to immediately. Also, the correct email address for the list is domjudge-devel@domjudge.org not the -owner variant, I'm CC-ing it to the list now. Note that you have to subscribe to be able to send emails to the list.
On 05-03-18 17:56, Guillaume MILAN wrote:
Dear developers, I am currently trying to develop a parallel way for user to login to my server. Indeed, I installed the domjudge server and I have write some scripts to verify via my ldap server that the user is in my ldap database.
But I would like to know how can i verify if a user is in the domjudge data base and - if yes verify his password to log him in and - if he isn't in the domjudge data base I would like to create a domjudge account for him. (does a sha512 hash will be supproted as user name?)
Is there any document that describe your authentication process.
We're currently changing to using Symfony in master, and there we didn't setup LDAP authentication yet.
However, up to version 5.3 you can configure to authenticate users against an LDAP server. See etc/domserver-config.php, the LDAP authentication method and related settings.
The authentication code lives in lib/www/auth.php.
We also have an option to allow users to self-register with DOMjudge, see the configuration settings in the admin web interface.
I'm not the most familiar with this code, so others might want to step in with more details.
Best, Jaap