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

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

lcstudios/ldap-bundle
=====================

Symfony LCStudiosLdapBundle

0.3.7(12y ago)1552PHP

Since Oct 9Pushed 12y ago2 watchersCompare

[ Source](https://github.com/LCStudios/LdapBundle)[ Packagist](https://packagist.org/packages/lcstudios/ldap-bundle)[ RSS](/packages/lcstudios-ldap-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

==== LCStudiosLdapBundle
========================

[](#lcstudiosldapbundle)

This bundle is forked from [DapsBundle](https://github.com/relwell/DapsBundle) which is based on the pull request accepted by Symfony2 for LDAP support. While it has been accepted, some of us would like to use this code sooner than the version of Symfony natively supporting it will provide.

This project is intended to take these code changes and silo them into a bundle so that we can easily extend these changes for our own purposes.

The fork fixes some issues in DapsBundle, which needs to be copied into the src folder and does not allow being configured from the central config. Role handling has been changed, too.

- [Pull request](https://github.com/symfony/symfony/pull/5189/files)
- [Full branch from lyrixx](https://github.com/lyrixx/symfony/compare/master...feat-security-ldap)

Documentation
=============

[](#documentation)

LdapBundle Setup Instructions
-----------------------------

[](#ldapbundle-setup-instructions)

To setup the LdapBundle, follow these steps:

1. Install via composer
2. Modify `app/config/security.yml` and add your ldap user provider

    ```
     security:
         providers:
             lc_studios_ldap:
                 id: lc_studios_ldap_user_provider

    ```

    also tell Symfony how to encode passwords. For example

    ```
     security:
         encoders:
             LCStudios\LdapBundle\Security\User\LdapUser: plaintext

    ```

    You can now also ensure that you define the parts of your app that will be under LDAP protection. e.g

    ```
     lc_studios_ldap:
         host: 'ldap://example.com'
         port: 389
         uid: 'uid'
         authenticated_role: 'ROLE_USER'
         base_dn: 'cn=users,dc=example,dc=com'
         bind_user:
             dn: 'cn=ldapbind,cn=serviceusers,dc=example,dc=com'
             password: ldapbinduserpw

    ```

    Add your LDAP server specific configs. e.g

    ```
     secured_area:
         pattern:    ^/
         form-login-ldap: true

    ```
3. Setup your `SecurityController`, routes and templates as detailed in the [Security Chapter](http://symfony.com/doc/current/book/security.html) of the Symfony Documentation.
4. Add Bundle to AppKernel.

Every authenticated user gets the role defined as 'authenticated\_role'. Additionally they get roles determined by OUs and groups, e.g.:

- ROLE\_ADMIN if they are in the OU 'admin'
- ROLE\_MAILUSER if they are in the group mailuser

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~6 days

Recently: every ~1 days

Total

10

Last Release

4587d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1447245?v=4)[Robin Gloster](/maintainers/globin)[@globin](https://github.com/globin)

---

Top Contributors

[![relwell](https://avatars.githubusercontent.com/u/232917?v=4)](https://github.com/relwell "relwell (23 commits)")[![globin](https://avatars.githubusercontent.com/u/1447245?v=4)](https://github.com/globin "globin (16 commits)")[![ylynfatt](https://avatars.githubusercontent.com/u/19831?v=4)](https://github.com/ylynfatt "ylynfatt (7 commits)")

### Embed Badge

![Health badge](/badges/lcstudios-ldap-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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