Recreates LDAP Users after Cron

Recreates LDAP Users after Cron

by Theo Yianni -
Number of replies: 2

Hi all,


I imported my students via CSV and enabled LDAP to authenticate. Everything was great.


After I set up Cron and ran it, my students are displayed with 'Edit Profile' when they log in now.


If I reimport the CSV, they do not get this page on log in. 


How can I prevent Cron from syncing LDAP users and viewing this page at login without disabling the LDAP authentication. 


Thank you.


EDIT: 'LDAP users sync job' Last run = Never.

Average of ratings: -
In reply to Theo Yianni

Re: Recreates LDAP Users after Cron

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

This is because there is a required field missing in your LDAP sync.  Make sure that all your required fields are syncing and then they will not be presented with the profile page.

When they log in, the profile in your LDAP servier is overriding what is in moodle.  Once it is updated in Moodle again, it is probably writing to the LDAP server and filling the necessary field.

In reply to Emma Richardson

Re: Recreates LDAP Users after Cron

by Theo Yianni -

Thanks for your reply.


Could I decide which fields are required and how? I do not want the email field to be required.


Thank you.