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

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

wiser/ldap-user-provider-bundle
===============================

LDAP user provider bundle for Symfony 6.4

3.0(1y ago)212.5k↑125%1apache-2.0PHPPHP ^8.1

Since Apr 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wiser/LdapUserProviderBundle)[ Packagist](https://packagist.org/packages/wiser/ldap-user-provider-bundle)[ Docs](https://github.com/Wiser/LdapUserProviderBundle)[ RSS](/packages/wiser-ldap-user-provider-bundle/feed)WikiDiscussions master Synced 1mo ago

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

LdapUserProviderBundle
======================

[](#ldapuserproviderbundle)

This bundle provides LDAP authentication. It can also be used for authorization by retrieving the groups to which users belong and setting them as roles. It relies on the standard ldap php extension.

Dependencies
------------

[](#dependencies)

```
- it should be compliant with Symfony 3.4, 4.4 and 5.4
- ext-ldap
- symfony/ldap

```

### Get the Bundle with composer

[](#get-the-bundle-with-composer)

```
composer require wiser/ldap-user-provider-bundle
```

### Configure services.yaml

[](#configure-servicesyaml)

```
# config/services.yaml
parameters:
    ldap.host: 'dc.company.com'
    ldap.port: '389'
    ldap.user: 'user'               # administrative account used to bind user/password
    ldap.password: 'password'
    ldap.base_dn: 'dc=COMPANY,dc=ORG'
    ldap.roles_ou_filter: 'OU=APPLICATIONS,OU=GROUPS'

services:
    Symfony\Component\Ldap\Adapter\ExtLdap\Adapter:
        arguments:
            -   host: '%ldap.host%'
                port: '%ldap.port%'

    Symfony\Component\Ldap\Ldap:
        arguments: ['@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter']
```

### Configure security.yaml

[](#configure-securityyaml)

```
# config/packages/security.yaml

security:
    providers:
        my_ldap:
            wiser_ldap: # this is the configuration key that matches this bundle
                service: Symfony\Component\Ldap\Ldap
                base_dn: '%ldap.base_dn%'
                search_dn: '%ldap.user%'
                search_password: '%ldap.password%'
                roles_ou_filter: '%ldap.roles_ou_filter%'
# there are other configuration settings, check the code (LdapUserProviderFactory.php) to find them by yourself ;)

    firewalls:
        restricted_area:
            anonymous: true
            form_login_ldap: ldap
                login_path: login
                    check_path: login
                    csrf_token_generator: security.csrf.token_manager
                    service: Symfony\Component\Ldap\Ldap
                    dn_string: '%ldap.base_dn%'
                    search_dn: '%ldap.user%'
                    search_password: '%ldap.password%'
                    query_string: (&(ObjectClass=Person)(sAMAccountName={username}))
                    provider: my_ldap
```

**Note:**

> You can refer to the official Symfony documentation :

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~263 days

Recently: every ~235 days

Total

10

Last Release

585d ago

Major Versions

1.4 → 2.02022-03-15

2.2 → 3.02024-10-11

PHP version history (2 changes)1.0PHP ^5.5.9|&gt;=7.0.8

3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/66a7b0ce6b3bf646b7ab291509d180f69f611a800c09a3a8465fd539d2f3a4a1?d=identicon)[wiser](/maintainers/wiser)

---

Top Contributors

[![wiser](https://avatars.githubusercontent.com/u/1567763?v=4)](https://github.com/wiser "wiser (3 commits)")[![mix359](https://avatars.githubusercontent.com/u/508605?v=4)](https://github.com/mix359 "mix359 (1 commits)")

---

Tags

symfonyldapactive directory

### Embed Badge

![Health badge](/badges/wiser-ldap-user-provider-bundle/health.svg)

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

###  Alternatives

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)[ldaptools/ldaptools-bundle

Provides easy LDAP integration for Symfony via LdapTools.

49159.5k](/packages/ldaptools-ldaptools-bundle)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)

PHPackages © 2026

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