PHPackages                             toshy62/ldapobjectbundle - 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. toshy62/ldapobjectbundle

ActiveSymfony-bundle

toshy62/ldapobjectbundle
========================

Symfony2 Bundle for OpenLdapObject

1.1.5(2y ago)028[1 issues](https://github.com/Toshy62/LdapObjectBundle/issues)MITPHPPHP &gt;=8.2

Since Mar 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Toshy62/LdapObjectBundle)[ Packagist](https://packagist.org/packages/toshy62/ldapobjectbundle)[ Docs](https://github.com/OpenLdapObject/LdapObjectBundle)[ RSS](/packages/toshy62-ldapobjectbundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (10)Used By (0)

LdapObjectBundle : Symfony2 Bundle for OpenLdapObject

LdapObjectBundle is a Symfony2 Bundle. It is an interface for retrieving, modifying and persisting LDAP entities. It requires an another Bundle : the OpenLdapObject Bundle which is the simple connector LDAP using PHP's native LDAP functions. It can be use with Symfony version 2, 3 and 4, and add a system of complex Query and Conditions LDAP.

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require openldapobject/ldapobjectbundle "~1"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Or add the bundle in your `composer.json` and launch this command `composer update`

```
...
    "require" : {
        ...
        "openldapobject/ldapobjectbundle": "~1.0",
        ...
    },
...

```

Step 2: Configuration
---------------------

[](#step-2-configuration)

Add configuration keys in the `app/config/parameters.yml` and `app/config/parameters.yml.dist` and configure for your openldap :

```
    ldap_hostname: ldap-test.univ.fr
    ldap_base_dn: 'dc=univ,dc=fr'
    ldap_dn: 'cn=login,ou=ldapusers,dc=univ,dc=fr'
    ldap_password: 'password'

```

Add configuration keys for the bundle in `app/config/config.yml`

```
# Ldap
open_ldap_object_ldap_object:
    host:     "%ldap_hostname%"
    dn:       "%ldap_dn%"
    password: "%ldap_password%"
    base_dn:  "%ldap_base_dn%"

```

Step 3: Enable the Bundle
-------------------------

[](#step-3-enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
