Half-unenroled users

Half-unenroled users

by Ellio Mourinho -
Number of replies: 5

We have an issue with our installation of moodle where some LDAP users were only half unenrolled.

We currently have the "disable enrolment and remove role" option chosen for external unenrol actions, mainly to account for possible issues if the LDAP server is to go down or get corrupted.

In the attached screenshot you can see John Doe is properly unenroled, however Jane Doe is not. Dudley Do-Right is an example of a currently enroled user. When John Doe signs in, they do not see the course (as expected. Jane Doe still sees the course when signing in, and is able to access it as a guest user.

This is becoming problematic so I'm looking into a way to find all the users this may be affecting so that I can change whatever flag is in place for enabled/disabled enrolment. However I cannot seem to locate the flag/value that gets changed. Is there anything in the moodle DB that has this information? Or does it check with the LDAP server every time the user connects?

If it is the latter, is there a way that we can trigger moodle to basically refresh it's knowledge of enrolments? Not changing anything unless it's not valid?

Attachment Screen Shot 2013-06-06 at 2.00.38 PM.png
Average of ratings: -
In reply to Ellio Mourinho

Re: Half-unenroled users

by Lawrence N -

Which LDAP technology are your using? If I am not mistaken (or maybe it was fixed), it may have something to do with the maximum number of records returned by LDAP. Problematic with Active Directory's implementation of LDAP.

In reply to Lawrence N

Re: Half-unenroled users

by Ellio Mourinho -

Hi Lawrence, thanks for the reply.

I've checked with the team in charge of the LDAP servers for our installation and they said that we're using an old version of open ldap.

RE: The maximum records returned by LDAP, would that be a change made in Moodle? Or in the LDAP server? Would we want to increase or decrease the value?

In reply to Ellio Mourinho

Re: Half-unenroled users

by Lawrence N -

By the way, I looked at using LDAP too when we implemented external enrolment and decided to use database method instead. Glad I did smile

In reply to Lawrence N

Re: Half-unenroled users

by Ellio Mourinho -

Hi Lawrence, thanks for the link, I'll pass it on.

What exactly is the database method you're referring to?