PHPackages                             81square/tiesa-ldap - 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. 81square/tiesa-ldap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

81square/tiesa-ldap
===================

LDAP made easy - supports LDAP paged result (fork of tiesa/ldap)

v1.0.2(10y ago)26.4k4[1 issues](https://github.com/81square/ldap/issues)MITPHPPHP &gt;=5.4.22

Since Feb 19Pushed 10y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

TIESA Ldap Component Fork
=========================

[](#tiesa-ldap-component-fork)

This is a fork of the original [tiesa/ldap](https://packagist.org/packages/tiesa/ldap) package. Credits to the original author [Cyril Cottet](https://github.com/ccottet) for creating this great package!

This fork fixes some minor issues and adds LDAP paged result support. Please note that because of the paging support this package requires a higher PHP version (&gt;= 5.4.22) than the original package. This package uses the same namespace as the original package and can be used as an easy replacement of the original package.

Install
=======

[](#install)

Installing the component in your project is as simple as installing [Composer](http://getcomposer.org/download/)if not already done so yet.

Then, under your project root folder, create a new file called composer.json and paste the following into it:

```
{
    "require": {
        "81square/tiesa-ldap": "dev-master"
    }
}

```

To select the component names &amp; versions, you shall refer to information found at [Packagist](http://packagist.org)

Then you are ready to download all the vendor libraries and generate the autoloading configuration file:

```
$ php composer.phar install

```

From there, loading Ldap component classes as well as any other package supported in your composer.json configuration is as easy as adding the following code at the top of your script:

```
require_once '/path/to/project/vendor/autoload.php';

```

Usage
=====

[](#usage)

Connecting &amp; Binding
------------------------

[](#connecting--binding)

A typical sequence for connecting to a LDAP involves not only establishing the connection to the server but also binding a user. This is done as follows:

```
