PHPackages                             openldapobject/openldapobject - 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. openldapobject/openldapobject

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

openldapobject/openldapobject
=============================

Use Object to Read/Write in a LDAP

1.3.6(1y ago)11.9k2MITPHPPHP &gt;=5.4.0

Since Mar 7Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (19)Used By (2)

OpenLdapObject
==============

[](#openldapobject)

[![Build Status](https://camo.githubusercontent.com/06809de6d2562fb34f0a7de2c9b27d58786872694a44f9486a993d45dc4823eb/68747470733a2f2f7472617669732d63692e6f72672f4f70656e4c6461704f626a6563742f4f70656e4c6461704f626a6563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenLdapObject/OpenLdapObject)[![Version](https://camo.githubusercontent.com/9deb802439a70a34f4b41a1e46ca6dfd2a7060b2e828f8dfaf0c58eedd0dc8c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e6c6461706f626a6563742f6f70656e6c6461706f626a6563742e7376673f7374796c653d666c6174)](https://packagist.org/packages/openldapobject/openldapobject)[![Code Climate](https://camo.githubusercontent.com/450b969740c3bc92cf4afa59383f8342ae47fd2ab53cd8dd1298cdaa59ba6bcc/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4f70656e4c6461704f626a6563742f4f70656e4c6461704f626a6563742f6261646765732f6770612e737667)](https://codeclimate.com/github/OpenLdapObject/OpenLdapObject)

Use Object to Read/Write in a LDAP
----------------------------------

[](#use-object-to-readwrite-in-a-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/openldapobject "~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/openldapobject": "~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'

```

Step 3: Use the Bundle
----------------------

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

You can use this bundle like this :

```
