LDAP syncing scripts
General plugins (Local) ::: local_ldap
Maintained by
Charles Fulton,
Andrew Zito
This plugin synchronizes Moodle cohorts against an LDAP directory using either group memberships or attribute values.
Latest release:
545 sites
316 downloads
22 fans
This plugin synchronizes Moodle cohorts against an LDAP directory using either group memberships or attribute values. This is a continuation of Patrick Pollet's local_ldap plugin, which in turn was inspired by MDL-25011 and MDL-25054.
This plugin requires that you have either CAS or LDAP enabled as an authentication method. It officially supports OpenLDAP and Active Directory. Both have unit test coverage.
The synchronization tasks are managed as scheduled tasks and are disabled by default.
Useful links
Contributors
Charles Fulton (Lead maintainer)
Andrew Zito
Please login to view contributors details and/or to contact them
Does the plugin consider configurated filters in the ldap authentification and if not how is the best practices then to enroll only a few seperated groups in the moodle?
Thanks in advnace
Kindly Regards
Fabian
Any help greatly appreciated! This continues to be an awesome plugin for our school.
Sorry to hear you're having difficulty. Unfortunately I am not able to reproduce the behavior you are describing -- I'm not even sure what circumstances would cause a plugin settings page to be disabled like that. Could you provide some screenshots for us to look at? Maybe we can figure out what's going wrong.
And this script didnt work at all using ldap_plus auth plugin(at least may be needed some code editing).
Group attribute - cn
Group class - group
Process nested groups - yes
Auto create missing cohorts - yes
Attribute name to search - department
Axel, could you please help me, I have made the changes as you suggested, but still it is not populating cohorts.
We have the same issue than Tobias Marx.
We suppose that the problem comes after an upgrade to Moodle 3.8. We try to upgrade to Moodle 3.9, we uninstall and reinstall the plugin but nothing is done when the task is running.
Execute scheduled task: Synchronisation des cohortes sur les groupes du LDAP (local_ldap\task\group_sync_task)
... started 21:13:38. Current memory use 13.8Mo.
... used 0 dbqueries
... used 0.064833164215088 seconds
Scheduled task complete: Synchronisation des cohortes sur les groupes du LDAP (local_ldap\task\group_sync_task)
Our configuration is :
Group attribute - cn
Group class - group
Process nested groups - yes
Auto create missing cohorts - yes
The LDAP (Active Directory) authentification works well.
Thanks for your help.
When running the task I get:
Execute scheduled task: Synchronize cohorts from LDAP groups (local_ldap\task\group_sync_task)
... started 13:26:03. Current memory use 13.6MB.
... used 99 dbqueries
... used 0.11082696914673 seconds
Scheduled task complete: Synchronize cohorts from LDAP groups (local_ldap\task\group_sync_task)
...but no changes are synced. Any help, greatly appreciated.
Scheduled task failed: Synchronize cohorts from LDAP groups (local_ldap\task\group_sync_task),Call to undefined function ldap_connect()
Any thoughts?
Execute scheduled task: Synchronize cohorts from LDAP groups (local_ldap\task\group_sync_task)
... started 08:19:56. Current memory use 14.5MB.
... used 99 dbqueries
... used 0.069606065750122 seconds
Scheduled task complete: Synchronize cohorts from LDAP groups (local_ldap\task\group_sync_task)
But no cohorts are updated.