PHPackages                             tituspijean/flarum-ext-auth-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tituspijean/flarum-ext-auth-ldap

ActiveFlarum-extension[Authentication &amp; Authorization](/categories/authentication)

tituspijean/flarum-ext-auth-ldap
================================

Allow users to log in through LDAP.

v1.0.0-p6(3y ago)216.2k↑50%13[6 issues](https://github.com/tituspijean/flarum-ext-auth-ldap/issues)[2 PRs](https://github.com/tituspijean/flarum-ext-auth-ldap/pulls)MITJavaScript

Since Mar 19Pushed 2y ago5 watchersCompare

[ Source](https://github.com/tituspijean/flarum-ext-auth-ldap)[ Packagist](https://packagist.org/packages/tituspijean/flarum-ext-auth-ldap)[ RSS](/packages/tituspijean-flarum-ext-auth-ldap/feed)WikiDiscussions testing Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Flarum LDAP authentication
==========================

[](#flarum-ldap-authentication)

This extension enables users to log into [Flarum](https://github.com/flarum/core) through LDAP.

How to install
--------------

[](#how-to-install)

`composer require tituspijean/flarum-ext-auth-ldap` and activate it in Flarum's administration panel.

Languages
---------

[](#languages)

This extension is translated in French and English.

Configuration
-------------

[](#configuration)

[![Screenshot](https://user-images.githubusercontent.com/8769166/82216722-aa61f500-9919-11ea-81d8-a06107c8020a.png)](https://user-images.githubusercontent.com/8769166/82216722-aa61f500-9919-11ea-81d8-a06107c8020a.png)

- `LDAP server name`: sets the end of the `Login with` link at the top of the forum: [![image](https://user-images.githubusercontent.com/8769166/82216921-eeed9080-9919-11ea-9ae5-8c795816f3fa.png)](https://user-images.githubusercontent.com/8769166/82216921-eeed9080-9919-11ea-9ae5-8c795816f3fa.png)
- `LDAP domains or server IP adresses (comma separated)`: list of LDAP servers to use.
- `Base DNs (semicolon separated)`: list of base DNs to search users in.
- `Filter to apply (optional)`: Additional filtering, for example require users to be in a specific group.
- `Port`: LDAP server port
- `Follow referrals`, `Use SSL`, `Use TLS`: LDAP server settings
- `LDAP admin distinguished name` and `LDAP admin password (leave empty for anonymous binding)` : if needed, specific the DN and password of the user allowed to perform searches in the LDAP server.
- `LDAP user search fields (comma separed)`: list of the LDAP fields used to look for the users. The extension will try all combinations of base DNs and search fields.
- `LDAP user mail field`: name of the field containing the user's email address. The extension will use the first email found for the user's registration in Flarum.
- `LDAP username field`: name of the field containing the username that uniquely identifies the user. Can be `uid` or `sAMAccountname`, for example.
- `Disable Flarum login and only use LDAP authentication`: merely hides the standard login links and buttons. Users can still use the standard login method through the API.

Development (With docker)
-------------------------

[](#development-with-docker)

- Clone the repository
- Copy docker.conf : `cp docker/.docker.conf.dist docker/.docker.conf`
- Change UID in `docker/.docker.conf` if needed.
- Start dockers : `./install.sh install`
- Open
    - MySQL host: mysql
    - MySQL DB: flarum
    - MySQL user: flarum
    - MySQL password: flarum
- Go to Admin panel and enable extension
    - LDAP domain: ldap
    - LDAP DN: dc=flarum,dc=com
    - Check connect with Ldap admin
    - LDAP admin: cn=admin,dc=flarum,dc=com
    - LDAP admin password: flarum
    - LDAP search user fields: cn,mail
    - LDAP user mail: mail
    - LDAP user username: cn
- Add and user on :
    - Login: cn=admin,dc=flarum,dc=com
    - Password: flarum
    - Create a new entry -&gt; Default -&gt; inetOrgPerson

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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

Every ~69 days

Recently: every ~50 days

Total

15

Last Release

1272d ago

Major Versions

v0.1.0-beta.16-1 → v1.0.0-p12021-06-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/8be521ad92e1c419ec7cfde29832959b29ce167c98ee2c21da25a06dc3d65ccc?d=identicon)[tituspijean](/maintainers/tituspijean)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")[![CodazziS](https://avatars.githubusercontent.com/u/8134250?v=4)](https://github.com/CodazziS "CodazziS (10 commits)")[![QF0xB](https://avatars.githubusercontent.com/u/37348361?v=4)](https://github.com/QF0xB "QF0xB (1 commits)")

---

Tags

flarumflarum-extensionldapldap-authenticationAuthentication

### Embed Badge

![Health badge](/badges/tituspijean-flarum-ext-auth-ldap/health.svg)

```
[![Health](https://phpackages.com/badges/tituspijean-flarum-ext-auth-ldap/health.svg)](https://phpackages.com/packages/tituspijean-flarum-ext-auth-ldap)
```

###  Alternatives

[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[nomiscz/flarum-ext-auth-wechat

Allow users to log in with WeChat

152.5k](/packages/nomiscz-flarum-ext-auth-wechat)[spookygames/flarum-ext-auth-keycloak

Allow users to sign in/up/out with Keycloak.

171.5k](/packages/spookygames-flarum-ext-auth-keycloak)[hehongyuanlove/flarum-auth-qq

Allow users to log in with QQ

111.0k](/packages/hehongyuanlove-flarum-auth-qq)

PHPackages © 2026

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