We have setup moodle (Version 3.11.2 (Build: 20210729) ) with LDAP Authentication and LDAP Enrolment. Both working fine:
Running Cron Job creates courses we configured in Active Directory and students are enrolled to this courses when they are member of the AD groups.
If a student who is enrolled to the course logs in to moodle, he is unenrolled.
When I run CronJob following entries appear in Moodle log:
component | event name | description |
---|---|---|
System | User created | The user with id '2' created the user with id '1941'. |
System | User enrolled in course | The user with id '2' enrolled the user with id '1941' using the enrolment method 'ldap' in the course with id '9'. |
System | Role assigned | The user with id '2' assigned the role with id '5' to the user with id '1941'. |
Log entries created when the user logs in to moodle:
component | event name | description |
---|---|---|
System | User password updated | The user with id '0' changed the password of the user with id '1941'. |
System | Role unassigned | The user with id '0' unassigned the role with id '5' from the user with id '1941'. |
System | User unenrolled from course | The user with id '0' unenrolled the user with id '1941' using the enrolment method 'ldap' from the course with id '9'. |
System | User has logged in | The user with id '1941' has logged in. |
System | Dashboard viewed | The user with id '1941' has viewed their dashboard |
Any idea whats going wrong?