PHPackages                             svajiraya/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. svajiraya/ldap-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

svajiraya/ldap-bundle
=====================

LDAP Bundle for Symfony 3.0+

v2.4.8(7y ago)01.6k1MITPHPPHP &gt;=5.3.3

Since Jul 31Pushed 7y ago4 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (17)Used By (0)

Support
=======

[](#support)

Dropping support for symfony versions &lt; 3.0. Recent patches might not be compatible with versions lower than 3.0 since some of the core methods were deprecated and removed from this package.

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 BorisMorel. Since this bundle is used frequently in almost all our projects, and since the original bundle was not being maintained by anyone we have tried to add our own mods to the project. Anyone is free to use this bundle and modify it as they please. I will try to keep this bundle upto date, but with my busy schedule that may not the case all the time. 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": {
        "svajiraya/ldap-bundle": "dev-master"
    }
}
```

or

```
composer require svajiraya/ldap-bundle
```

### Enable the Bundle

[](#enable-the-bundle)

```
