PHPackages                             lafayettecollege/moodle-local\_ldap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lafayettecollege/moodle-local\_ldap

ActiveMoodle-local

lafayettecollege/moodle-local\_ldap
===================================

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

v4.4.1(1mo ago)9137[14 issues](https://github.com/LafColITS/moodle-local_ldap/issues)[2 PRs](https://github.com/LafColITS/moodle-local_ldap/pulls)GPL-3.0-or-laterPHPCI passing

Since Jul 15Pushed 1mo ago10 watchersCompare

[ Source](https://github.com/LafColITS/moodle-local_ldap)[ Packagist](https://packagist.org/packages/lafayettecollege/moodle-local_ldap)[ RSS](/packages/lafayettecollege-moodle-local-ldap/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

LDAP syncing scripts
====================

[](#ldap-syncing-scripts)

[![Moodle Plugin CI](https://github.com/LafColITS/moodle-local_ldap/workflows/Moodle%20Plugin%20CI/badge.svg)](https://github.com/LafColITS/moodle-local_ldap/workflows/Moodle%20Plugin%20CI/badge.svg)

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](https://github.com/patrickpollet/moodle_local_ldap) plugin, which in turn was inspired by [MDL-25011](https://tracker.moodle.org/browse/MDL-25011) and [MDL-25054](https://tracker.moodle.org/browse/MDL-25054).

Requirements
------------

[](#requirements)

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

Installation
------------

[](#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
-------------

[](#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
-----

[](#usage)

Previous versions of this plugin used a CLI script. This is deprecated in favor of two [scheduled tasks](https://docs.moodle.org/31/en/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
-------

[](#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](https://docs.moodle.org/dev/PHPUnit#LDAP) for more information. You will need to set an additional constant, `TEST_AUTH_LDAP_USER_TYPE`, to `ad`.

Author
------

[](#author)

- Charles Fulton ()
- Patrick Pollet

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance70

Regular maintenance activity

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 79.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef434bc036124ba911b2fdea03980e1867faaddd675e86184cdc2b18d210a66?d=identicon)[lafayettecollege](/maintainers/lafayettecollege)

---

Top Contributors

[![mackensen](https://avatars.githubusercontent.com/u/553370?v=4)](https://github.com/mackensen "mackensen (126 commits)")[![patrickpollet](https://avatars.githubusercontent.com/u/540197?v=4)](https://github.com/patrickpollet "patrickpollet (26 commits)")[![jcharaoui](https://avatars.githubusercontent.com/u/89987?v=4)](https://github.com/jcharaoui "jcharaoui (3 commits)")[![0x616469](https://avatars.githubusercontent.com/u/522627?v=4)](https://github.com/0x616469 "0x616469 (1 commits)")[![AdamosD7](https://avatars.githubusercontent.com/u/161818973?v=4)](https://github.com/AdamosD7 "AdamosD7 (1 commits)")[![djlauk](https://avatars.githubusercontent.com/u/3351287?v=4)](https://github.com/djlauk "djlauk (1 commits)")

### Embed Badge

![Health badge](/badges/lafayettecollege-moodle-local-ldap/health.svg)

```
[![Health](https://phpackages.com/badges/lafayettecollege-moodle-local-ldap/health.svg)](https://phpackages.com/packages/lafayettecollege-moodle-local-ldap)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.8k10](/packages/helsingborg-stad-municipio)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7691.4M4](/packages/wp-media-wp-rocket)[october/rain

October Rain Library

1611.7M109](/packages/october-rain)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1623.0M1](/packages/drupal-recommended-project)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45945.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84157.7k3](/packages/mediawiki-maps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
