PHPackages                             monogramm/mautic-ldapauth-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-ldapauth-bundle

Abandoned → [monogramm/mautic-ldap-auth-bundle](/?search=monogramm%2Fmautic-ldap-auth-bundle)Mautic-plugin[Authentication &amp; Authorization](/categories/authentication)

monogramm/mautic-ldapauth-bundle
================================

This plugin enables LDAP authentication for mautic.

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

Since Apr 2Compare

[ Source](https://github.com/Monogramm/MauticLdapAuthBundle)[ Packagist](https://packagist.org/packages/monogramm/mautic-ldapauth-bundle)[ Docs](http://www.monogramm.io)[ RSS](/packages/monogramm-mautic-ldapauth-bundle/feed)WikiDiscussions 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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

2613d 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

pluginAuthenticationMauticldap

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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