PHPackages                             monogramm/mautic-ldap-auth-bundle - 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. monogramm/mautic-ldap-auth-bundle

ActiveMautic-plugin[Authentication &amp; Authorization](/categories/authentication)

monogramm/mautic-ldap-auth-bundle
=================================

This plugin enables LDAP authentication for mautic.

1.1.1(7y ago)1159613[2 issues](https://github.com/Monogramm/MauticLdapAuthBundle/issues)[2 PRs](https://github.com/Monogramm/MauticLdapAuthBundle/pulls)AGPL-3.0-or-laterPHPPHP &gt;=5.6.19 &lt;7.3CI failing

Since Apr 2Pushed 3y ago5 watchersCompare

[ Source](https://github.com/Monogramm/MauticLdapAuthBundle)[ Packagist](https://packagist.org/packages/monogramm/mautic-ldap-auth-bundle)[ Docs](http://www.monogramm.io)[ RSS](/packages/monogramm-mautic-ldap-auth-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (9)Versions (6)Used By (0)

[![Packagist](https://camo.githubusercontent.com/180603de4ed49408b3dfb42114584f4384bb436ec3f80ecd17dd7a1a7170870a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f6e6f6772616d6d2f6d61757469632d6c6461702d617574682d62756e646c652e737667)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/a1da9ec345afbf43f2c0c0b23be035b05b54deedd5abad2a083c75833579ba28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6e6f6772616d6d2f6d61757469632d6c6461702d617574682d62756e646c652e737667)](https://packagist.org/packages/monogramm/mautic-ldap-auth-bundle)[![Build Status](https://camo.githubusercontent.com/c37f6ebd47871ebb3fbf25d5924bdc14c0dcaf7ec0c6f70ec44692b46f1c50c6/68747470733a2f2f7472617669732d63692e6f72672f4d6f6e6f6772616d6d2f4d61757469634c6461704175746842756e646c652e737667)](https://travis-ci.org/Monogramm/MauticLdapAuthBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b1b94a33eae96d8f446168050d2ffa1cca2467dbe264d1ef034d0f5573c64279/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d6f6e6f6772616d6d2f4d61757469634c6461704175746842756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Monogramm/MauticLdapAuthBundle/?branch=master)[![mautic](https://camo.githubusercontent.com/8f4c84477cda5066112f79e2c370c6998d8488fb83783cc24783f7bd35f7e053/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61757469632d253345253344253230322e31312d626c75652e737667)](https://www.mautic.org/mixin/ldapauth/)

Mautic LDAP Authentication Plugin
=================================

[](#mautic-ldap-authentication-plugin)

This Plugin enables LDAP authentication for mautic 2 and newer. Even though Mautic offers SAML authentication, the main objective is to offer an alternative to those who do not want to setup SSO in their company just for mautic 😃

Installation via composer (preferred)
-------------------------------------

[](#installation-via-composer-preferred)

Execute `composer require monogramm/mautic-ldap-auth-bundle` in the main directory of the mautic installation.

Installation via .zip
---------------------

[](#installation-via-zip)

1. Download the [master.zip](https://github.com/Monogramm/MauticLdapAuthBundle/archive/master.zip), extract it into the `plugins/` directory and rename the new directory to `MauticLdapAuthBundle`.
2. Install `symfony/ldap` requirements with composer: `composer require symfony/ldap:~2.8`
3. Clear the cache via console command `php app/console cache:clear --env=prod` (might take a while) *OR* manually delete the `app/cache/prod` directory.

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

[](#configuration)

Navigate to the Plugins page and click "Install/Upgrade Plugins". You should now see a "LDAP Auth" plugin.

- [![LDAP Auth Plugin](docs/mautic_ldap_plugins_01.png)](docs/mautic_ldap_plugins_01.png)
- [![LDAP Auth Plugin - Published](docs/mautic_ldap_plugins_02.png)](docs/mautic_ldap_plugins_02.png)
- [![LDAP Auth Plugin - Features](docs/mautic_ldap_plugins_03.png)](docs/mautic_ldap_plugins_03.png)

After activating the plugin, you can now go to "Configuration &gt; LDAP Settings" to edit the parameters:

[![LDAP Settings](docs/mautic_ldap_settings_02.png)](docs/mautic_ldap_settings_02.png)

You can also edit manually your parameters in `local.php` (adapt to your LDAP configuration):

```
    //'parameters' => array(
    // ...
        'ldap_auth_host' => 'ldap.mysupercompany.com',
        'ldap_auth_port' => 389,
        'ldap_auth_version' => 3,
        'ldap_auth_ssl' => false,
        'ldap_auth_starttls' => true,
        'ldap_auth_base_dn' => 'ou=People,dc=ldap,dc=mysupercompany,dc=com',
        'ldap_auth_user_query' => '(objectclass=inetOrgPerson)',
        'ldap_auth_username_attribute' => 'uid',
        'ldap_auth_email_attribute' => 'mail',
        'ldap_auth_firstname_attribute' => 'givenname',
        'ldap_auth_lastname_attribute' => 'sn',
        'ldap_auth_fullname_attribute' => 'displayname',
        'ldap_auth_isactivedirectory' => false,
    // ...
```

A sample configuration for Active Directory is

```
    //'parameters' => array(
    // ...
        'ldap_auth_host' => 'ad.mysupercompany.com',
        'ldap_auth_port' => 389,
        'ldap_auth_version' => 3,
        'ldap_auth_ssl' => false,
        'ldap_auth_starttls' => false,
        'ldap_auth_base_dn' => 'cn=Users,dc=ad,dc=mysupercompany,dc=com',
        'ldap_auth_user_query' => '(objectclass=user)(memberof=marketing)',     // careful this can be case sensitive!
        'ldap_auth_username_attribute' => 'samaccountname',                     // this is case sensitive!
        'ldap_auth_email_attribute' => 'mail',
        'ldap_auth_firstname_attribute' => 'givenname',
        'ldap_auth_lastname_attribute' => 'sn',
        'ldap_auth_fullname_attribute' => 'displayname',
        'ldap_auth_isactivedirectory' => true,
        'ldap_auth_activedirectory_domain' => 'ad.mysupercompany.com',
    // ...
```

Once the parameters are set, open a new browser and check connection through LDAP. **Do not log out until LDAP configuration is valid!**

Developments in progress
------------------------

[](#developments-in-progress)

- Test LDAP Authentication settings
- LDAP bind account and Group management

Contributing
------------

[](#contributing)

Ideas and suggestions are welcome. Feel free to create an issue or PR on Github using our [CONTRIBUTING](CONTRIBUTING.md) guidelines.

License
-------

[](#license)

See [LICENSE](LICENSE) file.

Author(s)
---------

[](#authors)

- [Monogramm](https://github.com/Monogramm)

Awesome contributor(s)
----------------------

[](#awesome-contributors)

- [terdinatore](https://github.com/terdinatore)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~16 days

Total

3

Last Release

2566d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0e3319cf20ffa9cff4d82bdfa4194c44b696880e106262b6fb1baed8ae0397e?d=identicon)[madmath03](/maintainers/madmath03)

---

Top Contributors

[![madmath03](https://avatars.githubusercontent.com/u/6967675?v=4)](https://github.com/madmath03 "madmath03 (54 commits)")

---

Tags

authenticationldapmauticmixinsphppluginpluginAuthenticationMauticldap

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/monogramm-mautic-ldap-auth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/monogramm-mautic-ldap-auth-bundle/health.svg)](https://phpackages.com/packages/monogramm-mautic-ldap-auth-bundle)
```

###  Alternatives

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)[causal/ig_ldap_sso_auth

This extension provides LDAP support for TYPO3 by delegating the authentication of frontend and/or backend users to the centrally-managed directory of your organization. It fully supports OpenLDAP and Active Directory and is capable of connecting securely to the authentication server using either TLS or SSL (ldaps://). In case of use in an intranet environment, this extension is a perfect match since it natively brings Single Sign-On (SSO) capability to TYPO3 without any complex configuration.

33377.4k](/packages/causal-ig-ldap-sso-auth)[winter/wn-user-plugin

User plugin for Winter CMS

1233.5k13](/packages/winter-wn-user-plugin)

PHPackages © 2026

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