Hi Andrea,
I'm using LDAP authentication and it works good, now I want to assign the student role to a group of people who have a special context in LDAP which means that when the user is authenticated he is automatically a student on every course in the site.
I found LDAP enrolment but I can't work with it since I dont have groups for courses in my LDAP tree, I searched again and found this plugin "user role assignment from ldap" (https://moodle.org/plugins/enrol_ldapuserrel) but I'm not sure that it is compatible with my version of moodle (3.0).
I will be grateful if you have other ideas that can help,
Thank you