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

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

l3/ldap-user-bundle
===================

User Provider from LDAP (branch ou=people)

1.1.18(2y ago)32731LGPL-3.0-or-laterPHPPHP &gt;=8.2

Since Jun 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/l3-team/LdapUserBundle)[ Packagist](https://packagist.org/packages/l3/ldap-user-bundle)[ Docs](https://github.com/l3-team/LdapUserBundle)[ RSS](/packages/l3-ldap-user-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (5)Versions (15)Used By (0)

Symfony 2/3/4/5/6/7 User provider from LDAP

(author : Universite Lille)

Allow use LDAP like user provider and security in application written in Symfony2/3/4/5/6

Installation of the Bundle.
---------------------------

[](#installation-of-the-bundle)

Install the Bundle with this command :

```
composer require l3/ldap-user-bundle:~1.0

```

Launch the command **composer update** to install the package

For Symfony 2 and 3 : add the Bundle in AppKernel.php

```

```

- Dn : Use this annotation to build the dn with twig syntax
- Entity : Use this annotation to attribute to a php entity class an ldapObjectClass
- Column : Use this annotation to type the variable php
- Index : Use this annotation to set the index of the Entity

and in your Controller, you can read the LDAP with call your Entity like this :

```
# src/YourApplicationBundle/Controller/DefaultController.php
