The script is a command line script to be ran by a cron job.
Look at the comments at the top of the script - it suggests
/var/www/moodle/auth/cas/cli/sync_cohorts.php
Be careful, you will probably need to change the LDAP details.
*Translated by Bing *
Certains des commentaires dans le fichier sont en français
Le script est un script de ligne de commande pour être exécuté par une tâche cron.
Regardez les commentaires en haut du script