LDAP User Sync and enrollment

LDAP User Sync and enrollment

by J. Dalton Humpf -
Number of replies: 6

At my institution, we are trying to use moodle for the computer science department.

I am only trying to get specific AD groups to automatically sync with moodle so the users populate and professors can bulk import their students. Right now we are forced to wait until students login before we can manually add them to classes one by one.

I also am attempting to use an LDAP server that keeps crashing with the Sync Scripts. The reason I have to use the LDAP server is that students are in their own subdomain and I can't get logins to work with going against the primary domain through AD so I am going against an LDAP server that has users synced.

Average of ratings: -
In reply to J. Dalton Humpf

Re: LDAP User Sync and enrollment

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
See https://docs.moodle.org/en/LDAP_authentication. Once you get the parameters right, a cron job can pull the users before the teachers start enrolling them. For more, move to the Authentication forum https://moodle.org/mod/forum/view.php?id=42.
In reply to Visvanath Ratnaweera

Re: LDAP User Sync and enrollment

by J. Dalton Humpf -
I have tried that. It keeps crashing the LDAP server. And the parameters are right as Students can login and can for the first time but for whatever reason its not just trying to pull users from the specified groups!
In reply to Visvanath Ratnaweera

Re: LDAP User Sync and enrollment

by J. Dalton Humpf -
Also, I pulled the filter its trying to use on the LDAP server that is crashing it, it has been made generic.
(&(cn=*)(|(|(&(?objectClass=user)(!(?objectClass=computer)))(?MEMBEROF=cn=other,OU=Science,OU=All Domain Computers,DC=domain,DC=com)(?MEMBEROF=cn=admins,OU=Science,OU=All Domain Computers,DC=domain,DC=com)(?MEMBEROF=cn=current,OU=Science,OU=All Domain Computers,DC=domain,DC=com))))
In reply to Visvanath Ratnaweera

Re: LDAP User Sync and enrollment

by J. Dalton Humpf -
If I attempt from another linux server an LDAP search on that exact string, it says bad search string. If I take out the question marks, it works on the LDAP search....how would one take it out for the server? why are they even there?
In reply to J. Dalton Humpf

Re: LDAP User Sync and enrollment

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Without the question marks does it pull the same number of users. To avoid huge result sets LDAP servers have limits on the page size, which you can set in the LDAP plug-in.

In any case for the specialists in the Authentication forum. Hint to the moderator.
In reply to Visvanath Ratnaweera

Re: LDAP User Sync and enrollment

by J. Dalton Humpf -
Now I had it working and instead of asking for groups now its just ?=undefined I have no idea why its passing that