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

Abandoned → [blackbit\_digital\_commerce/pimcore-ldap](/?search=blackbit_digital_commerce%2Fpimcore-ldap)Pimcore-bundle

alep/ldap-bundle
================

Ldap bundle for Pimcore

1.5.3(2y ago)2715.3k↓50%9[3 issues](https://github.com/BlackbitDigitalCommerce/pimcore-ldap-bundle/issues)GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Mar 21Pushed 2y ago6 watchersCompare

[ Source](https://github.com/BlackbitDigitalCommerce/pimcore-ldap-bundle)[ Packagist](https://packagist.org/packages/alep/ldap-bundle)[ RSS](/packages/alep-ldap-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (13)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/2a9f659086fd01f5c1119c267504f6dbbab4bd4782bc82d1165b7f3000b9a319/68747470733a2f2f636972636c6563692e636f6d2f67682f616c6578706f7a7a692f70696d636f72652d6c6461702d62756e646c652e7376673f7374796c653d737667)](https://circleci.com/gh/alexpozzi/pimcore-ldap-bundle)[![License](https://camo.githubusercontent.com/a12fc1162dd6c420838bea1fb6395b00c2f6d5dd2ab4f3034aeb2755fc430daa/68747470733a2f2f706f7365722e707567782e6f72672f616c65702f6c6461702d62756e646c652f6c6963656e7365)](https://packagist.org/packages/alep/ldap-bundle)[![Total Downloads](https://camo.githubusercontent.com/c6e5e578a174dc4b8aeb0e0a0b8d48dc2e38c71d7d8d46262fabc19445de2be4/68747470733a2f2f706f7365722e707567782e6f72672f616c65702f6c6461702d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/alep/ldap-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/cb1a79fb4a9642819ce68b3502db8dff773aacd9bf05eabb779fbe889c0f75ad/68747470733a2f2f706f7365722e707567782e6f72672f616c65702f6c6461702d62756e646c652f762f737461626c65)](https://packagist.org/packages/alep/ldap-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/95a08ec7b86188ac86fd33283290a956ad34009e6e25280d7f633d1674f38241/68747470733a2f2f706f7365722e707567782e6f72672f616c65702f6c6461702d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/alep/ldap-bundle)

LDAP bundle for Pimcore
=======================

[](#ldap-bundle-for-pimcore)

Enables LDAP authentication to the Pimcore's admin UI.

If a user already exists in Pimcore (and is not in the list of the excluded users) it will be automatically updated with the informations coming from LDAP. If not a new user will be created automatically.

Requirements
------------

[](#requirements)

Pimcore &gt;= 5.1.0

Installation
------------

[](#installation)

1. Install the bundle using composer `composer require blackbit_digital_commerce/pimcore-ldap`.
2. Open Pimcore Admin UI, navigate to `Tools` &gt; `Extensions` and activate the bundle.

Configuration
-------------

[](#configuration)

1. Configure the Symfony LDAP client (see ).

```
    # config/services.yaml
    services:
        Symfony\Component\Ldap\Ldap:
            arguments: ['@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter']
        Symfony\Component\Ldap\Adapter\ExtLdap\Adapter:
            arguments:
                -   host: my-server
                    port: 389
                    encryption: tls
                    options:
                        protocol_version: 3
                        referrals: false
```

2. Configure the LDAP bundle.

```
    # config/config.yaml
    alep_ldap:
      enabled: true
      base_dn: "dc=example,dc=com"
```

### Supported options

[](#supported-options)

- **enabled**: Enables LDAP authentication (default: `false`).
- **service**: LDAP client to use (required, default: `Symfony\Component\Ldap\Ldap`).
- **base\_dn**: Base DN for the directory (required, example: `dc=example,dc=com`).
- **search\_dn**: Read-only user's DN, which will be used to authenticate against the LDAP server in order to fetch the user's information (example: `cn=your_search_dn_user,ou=users,dc=example,dc=com`).
- **search\_password**: Read-only user's password, which will be used to authenticate against the LDAP server in order to fetch the user's information (example: `your_search_dn_user_password`).
- **uid\_key**: Entry's key to use as its UID. Depends on your LDAP server implementation (required, default: `sAMAccountName`).
- **filter**: It lets you configure which LDAP query will be used. The {uid\_key} string will be replaced by the value of the uid\_key configuration value (by default, sAMAccountName), and the {username} string will be replaced by the username you are trying to load (required, default: `({uid_key}={username})`).
- **exclude**: \[DEPRECATED\] List of Pimcore's usernames to exclude from LDAP authentication (example: `['admin']`). If already configured the values will be merged to `exclude_rules.users` configuration.
- **exclude\_rules**: List of rules which determine if a user has to be excluded from LDAP authentication (it supports regular expressions, see below).
    - **users**: List of usernames or regular expressions matching usernames (or user full paths if the user already exists) to exclude from LDAP authentication (example: `['admin', '/^noldap.*/i']` to exclude the user `admin` and all users with a username starting with `noldap` like `noldap_alep`).
    - **roles**: List of roles or regular expressions matching role names to exclude from LDAP authentication (example: `['ROLE_PIMCORE_ADMIN', '/^ROLE_NOLDAP.*/i']` to exclude the users with `ROLE_PIMCORE_ADMIN` assigned and all users with a role starting with `ROLE_NOLDAP` like `ROLE_NOLDAP_USERS`).
- **default\_roles**: List of Pimcore's roles you wish to give to a user fetched from the LDAP server (example: `['ROLE_LDAP_USERS']`). All the configured default roles needs to be already present in Pimcore.
- **mapper**: Data mapper service used to map ldap user data to Pimcore user (required, default: `Alep\LdapBundle\DataMapper\DefaultLdapUserMapper`). See [Custom data mapper](#custom-data-mapper) to build your own data mapper.
- **logger**: Logger service used by the bundle (example: `monolog.logger`).

### Custom data mapper

[](#custom-data-mapper)

To build your own custom data mapper you just have to create a class which implements the [LdapUserMapperInterface](https://github.com/alexpozzi/pimcore-ldap-bundle/blob/master/src/DataMapper/LdapUserMapperInterface.php). You can use [DefaultLdapUserMapper](https://github.com/alexpozzi/pimcore-ldap-bundle/blob/master/src/DataMapper/DefaultLdapUserMapper.php) as an example. The [DefaultLdapUserMapper](https://github.com/alexpozzi/pimcore-ldap-bundle/blob/master/src/DataMapper/DefaultLdapUserMapper.php) is the default data mapper used by the bundle and it maps the following ldap attributes to the Pimcore user:

- username -&gt; Username
- password -&gt; Password (encoded using Pimcore's internal functions)
- givenName -&gt; Firstname
- sn -&gt; Lastname
- mail -&gt; Email

About Blackbit
--------------

[](#about-blackbit)

Beside of this Pimcore plugin Blackbit also offers [other bundles, individual development, consulting and hosting for your Pimcore project](https://pimcore.com/en/partners/find-a-solution-partner/blackbit_p79).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 53.6% 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 ~194 days

Recently: every ~250 days

Total

12

Last Release

845d ago

PHP version history (2 changes)1.0PHP &gt;=7.0

1.5.3.x-devPHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd3c95b391fd64792a0040b41e923c7dce7ff6e3ddc15132b9154397f811ebbb?d=identicon)[alexpozzi87@gmail.com](/maintainers/alexpozzi87@gmail.com)

---

Top Contributors

[![alexpozzi](https://avatars.githubusercontent.com/u/8307861?v=4)](https://github.com/alexpozzi "alexpozzi (15 commits)")[![BlackbitDevs](https://avatars.githubusercontent.com/u/8749138?v=4)](https://github.com/BlackbitDevs "BlackbitDevs (6 commits)")[![palazzetti](https://avatars.githubusercontent.com/u/49283657?v=4)](https://github.com/palazzetti "palazzetti (3 commits)")[![ctippler](https://avatars.githubusercontent.com/u/8791970?v=4)](https://github.com/ctippler "ctippler (2 commits)")[![dpfahlbusch](https://avatars.githubusercontent.com/u/22637136?v=4)](https://github.com/dpfahlbusch "dpfahlbusch (1 commits)")[![Se7en-IT](https://avatars.githubusercontent.com/u/1436757?v=4)](https://github.com/Se7en-IT "Se7en-IT (1 commits)")

---

Tags

ldappimcorealepalexpozzi

### Embed Badge

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

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

###  Alternatives

[blackbit_digital_commerce/pimcore-ldap

Ldap bundle for Pimcore

2758.4k](/packages/blackbit-digital-commerce-pimcore-ldap)[coreshop/core-shop

CoreShop - Pimcore eCommerce

289197.5k10](/packages/coreshop-core-shop)[dachcom-digital/formbuilder

Pimcore FormBuilder - create forms easily!

96269.7k](/packages/dachcom-digital-formbuilder)[dachcom-digital/toolbox

Pimcore Project Kickstarter

67126.4k4](/packages/dachcom-digital-toolbox)[dachcom-digital/seo

Pimcore SEO Enrichment Bundle

36217.3k2](/packages/dachcom-digital-seo)[dachcom-digital/members

Pimcore User, Object, Asset and Document Authentication

5690.0k](/packages/dachcom-digital-members)

PHPackages © 2026

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