lafayettecollege/moodle-local_ldap

This plugin synchronizes Moodle cohorts against an LDAP directory using either group memberships or attribute values.

Maintainers

Package info

github.com/LafColITS/moodle-local_ldap

Type:moodle-local

pkg:composer/lafayettecollege/moodle-local_ldap

Transparency log

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 9

Open Issues: 16

v4.4.1 2026-07-15 17:09 UTC

This package is auto-updated.

Last update: 2026-07-15 17:13:02 UTC


README

Moodle Plugin CI

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.

Requirements

  • Moodle 4.4 (build 2024042200 or later)
  • OpenLDAP or Active Directory

Installation

Copy the ldap folder into your /local directory and visit your Admin Notification page to complete the installation. You must have either the CAS or LDAP authentication method enabled.

Configuration

Depending on your environment the plugin may work with default options. Configuration settings include the group class (groupOfNames by default) and whether to automatically import all found LDAP groups as cohorts. By default this setting is disabled.

Usage

Previous versions of this plugin used a CLI script. This is deprecated in favor of two scheduled tasks, one for syncing by group and another for syncing by attribute. Both are configured to run hourly and are disabled by default.

Testing

The code is tested against OpenLDAP on Travis CI. If you have a local Active Directory environment you may run the tests against it. See PHPUnit#LDAP for more information. You will need to set an additional constant, TEST_AUTH_LDAP_USER_TYPE, to ad.

Author