PHPackages                             surda/adldap2-nette - 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. surda/adldap2-nette

ActiveLibrary

surda/adldap2-nette
===================

Adldap2 integration into Nette Framework

v2.0.2(3y ago)0921MITPHPPHP &gt;=8.0

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/surda/adldap2-nette)[ Packagist](https://packagist.org/packages/surda/adldap2-nette)[ Docs](http://surani.cz)[ RSS](/packages/surda-adldap2-nette/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (7)Used By (0)

[Adldap2](https://github.com/Adldap2/Adldap2) integration into Nette Framework.
===============================================================================

[](#adldap2-integration-into-nette-framework)

[![Build Status](https://camo.githubusercontent.com/0b981b03a00cb06d461aa5a5e4c46311f174f6636ab0188830e0c594dbed3aec/68747470733a2f2f7472617669732d63692e6f72672f73757264612f61646c646170322d6e657474652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/surda/adldap2-nette)[![Licence](https://camo.githubusercontent.com/a912cdbdb2f085f9127122445651f256ddc306e782cdd8afe0f3491f89fc9e5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73757264612f61646c646170322d6e657474652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/surda/adldap2-nette)[![Latest stable](https://camo.githubusercontent.com/54671b8636c0b3be0ab90694cf7f43aa9f0eda5b5f70b69c18c7eae43f77aab8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757264612f61646c646170322d6e657474652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/surda/adldap2-nette)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)

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

[](#installation)

The recommended way to is via Composer:

```
composer require surda/adldap2-nette

```

After that you have to register extension in config.neon:

```
extensions:
    adldap: Surda\Adldap\DI\AdldapExtension
    adldap.credentialsFactory: Surda\Adldap\DI\LdapCredentialsExtension
```

Minimal configuration
---------------------

[](#minimal-configuration)

```
adldap:
    hosts: { 'corp-dc1.corp.acme.org', 'corp-dc2.corp.acme.org' }
    base_dn: 'dc=corp,dc=acme,dc=org'
    username: 'admin'
    password: 'password'
```

List of all configuration options:

```
adldap:
    # Mandatory configuration options
    hosts: { 'corp-dc1.corp.acme.org', 'corp-dc2.corp.acme.org' }
    base_dn: 'dc=corp,dc=acme,dc=org'
    username: 'admin'
    password: 'password'

    # Optional configuration options
    schema: \Adldap\Schemas\ActiveDirectory
    account_prefix: 'ACME-'
    account_suffix: '@@acme.org'
    port: 389
    follow_referrals: FALSE
    use_ssl: false
    use_tls: false
    version: 3
    timeout: 5

adldap.credentialsFactory:
  accountPrefix: ''
  accountSuffix: '@@ad.domain.com'
```

Usage
-----

[](#usage)

```
use Adldap\Adldap;
use Adldap\Auth\BindException;
use Adldap\Auth\PasswordRequiredException;
use Adldap\Auth\UsernameRequiredException;

class Foo
{
    public function __construct(private Adldap $adldap)
    {
    }

    public function auth(): bool
    {
        $provider = $this->adldap->connect();

        try {
            return $provider->auth()->attempt('username', 'password');
        }
        catch (BindException $e) {
        }
        catch (PasswordRequiredException $e) {
        }
        catch (UsernameRequiredException $e) {
        }
    }
}
```

More in the [Adldap2 documentation](http://adldap2.github.io/Adldap2/).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~284 days

Recently: every ~292 days

Total

6

Last Release

1249d ago

Major Versions

v1.0.3 → v2.0.02022-04-01

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8d497ef90ca9ed180419b5ab29857be10e88d0614cf01c94b0f2ab5094de45d?d=identicon)[surda](/maintainers/surda)

---

Top Contributors

[![surda](https://avatars.githubusercontent.com/u/588663?v=4)](https://github.com/surda "surda (9 commits)")

---

Tags

netteldapactive directoryadldap2

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/surda-adldap2-nette/health.svg)

```
[![Health](https://phpackages.com/badges/surda-adldap2-nette/health.svg)](https://phpackages.com/packages/surda-adldap2-nette)
```

###  Alternatives

[directorytree/ldaprecord

A fully-featured LDAP ORM.

5782.9M10](/packages/directorytree-ldaprecord)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5682.0M15](/packages/directorytree-ldaprecord-laravel)[symfony/ldap

Provides a LDAP client for PHP on top of PHP's ldap extension

1407.5M46](/packages/symfony-ldap)[adldap/adldap

A PHP LDAP Library for Active Directory Manipulation

429170.1k9](/packages/adldap-adldap)[ldaptools/ldaptools

LdapTools is a feature-rich LDAP library for PHP 5.6+.

204263.9k1](/packages/ldaptools-ldaptools)[edvlerblog/yii2-adldap-module

yii2 Active Directory implementation (wrapper for Adldap2)

51227.3k](/packages/edvlerblog-yii2-adldap-module)

PHPackages © 2026

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