PHPackages                             jmleroy/ldap-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. jmleroy/ldap-bundle

ActiveLibrary

jmleroy/ldap-bundle
===================

LDAP Bundle for Symfony 3 (backward compatible)

v2.4.10(7y ago)0952MITPHPPHP &gt;=5.3.3

Since Jul 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jmleroy/LdapBundle)[ Packagist](https://packagist.org/packages/jmleroy/ldap-bundle)[ Docs](http://github.com/jmleroy/LdapBundle)[ RSS](/packages/jmleroy-ldap-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (22)Used By (0)

LdapBundle
==========

[](#ldapbundle)

LdapBundle provides LDAP authentication without using Apache's `mod_ldap`. The bundle instead relies on PHP's [LDAP extension](http://php.net/manual/en/book.ldap.php) along with a form to authenticate users. LdapBundle can also be used for authorization by retrieving the user's roles defined in LDAP.

Credits
-------

[](#credits)

This Bundle was originally created by Boris Morel and then forked by Subramanya Vajiraya. Since this bundle was discontinued by its original maintainer and probably abandoned by its last forker (last update was from 2017), and since I needed to fix it, I both submitted a pull request *and* forked it myself. Anyone is free to use this bundle and modify it as they please. I will try to keep this bundle up to date. If you do manage to update the project, please submit a pull request and I would be happy to examine and merge it.

Install
-------

[](#install)

1. Download with composer
2. Enable the Bundle
3. Configure LdapBundle in security.yml
4. Import LdapBundle routing
5. Implement Logout
6. Use chain provider
7. Subscribe to PRE\_BIND event
8. Subscribe to POST\_BIND event

### Get the Bundle

[](#get-the-bundle)

### Composer

[](#composer)

Add LdapBundle in your project's `composer.json`

```
{
    "require": {
        "jmleroy/ldap-bundle": "dev-master"
    }
}
```

or

```
composer require jmleroy/ldap-bundle
```

### Enable the Bundle

[](#enable-the-bundle)

```
