PHPackages                             aimme/laravel5-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. aimme/laravel5-ldap

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

aimme/laravel5-ldap
===================

Ldap (Active Directory) authentication for Laravel 5

1.0.1(9y ago)030MITPHPPHP &gt;=5.6.0

Since Nov 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mohamed-aiman/laravel5-ldap)[ Packagist](https://packagist.org/packages/aimme/laravel5-ldap)[ RSS](/packages/aimme-laravel5-ldap/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/bb3d6a586cd565986342c753e02984c557c54f8180e0167ddf60cb342b2bb5ed/68747470733a2f2f7472617669732d63692e6f72672f61696e6d652f6c61726176656c352d6c6461702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ainme/laravel5-ldap)[![Built for Laravel 5](https://camo.githubusercontent.com/8ec9f075b25664584d62f940aef5e7563799006538fbde3236c07cfbf455c45c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d7265642e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8ec9f075b25664584d62f940aef5e7563799006538fbde3236c07cfbf455c45c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d7265642e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/Aimmme/laravel-ldap/blob/master/LICENSE)

- Tested only on Laravel 5.3
- You will need to have user Eloquent Model, and the database users table should have email field
- You could use both default Auth and Ldap
- Ldap facade works as Auth. Its the gate for ldap authentication
- Users should be in the providers (in this case users) table and Active Directory, password field is not required.
- See below to configure provider

\####Installation

1 - Require this package with composer:

```
composer require aimme/laravel5-ldap

```

2 - add provider

```
file: config/app.php

'providers' => [
    ....
    Aimme\Ldap\LdapServiceProvider::class,
];

```

3 - add alias

```
file: config/app.php

'aliases' => [
    ....
    'Ldap' => Aimme\Ldap\Facades\Ldap::class,
    ....
];

```

4 - run these artisan commands

```
php artisan make:ldap-auth

php artisan vendor:publish --provider="Aimme\Ldap\LdapServiceProvider"

```

5 - add middleware

```
file: app/Http/Kernel.php

protected $routeMiddleware = [
    ...
    'ldap' => \Aimme\Ldap\Middleware\Authenticate::class,
    ...
];

```

6 - bring following configuration changes to the ldap config file

file: config/ldap.php

- change providers array users model to your Eloquent user model path if it's different

    ```
    'providers' => [
        'users' => [
            'driver' => 'ldap',
            'model' => App\User::class,
        ],

    ```
- set your environment variables.

    ```
    'domain' => env('LDAP_DOMAIN', 'MYDOMAIN'),
    'host' => env('LDAP_HOST', 'ldap://aimme.mydomain.net'),

    ```

See

- host(LDAP\_HOST) is the $host eg: ldap://aimme.mydomain.net

See

- domain(LDAP\_DOMAIN) is the $bind\_rdn example: MYDOMAIN

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~0 days

Total

2

Last Release

3519d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ae68a2c9afa02b8f12c055e30325c11d9c1c9505f5338409ec0eb47a378c21?d=identicon)[aimme](/maintainers/aimme)

---

Top Contributors

[![mohamed-aiman](https://avatars.githubusercontent.com/u/14019247?v=4)](https://github.com/mohamed-aiman "mohamed-aiman (3 commits)")

---

Tags

laravelldapactive directorywindowsauthenticate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aimme-laravel5-ldap/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k50.9M364](/packages/tymon-jwt-auth)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M123](/packages/laravel-pulse)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

83910.6M60](/packages/php-open-source-saver-jwt-auth)[illuminate/auth

The Illuminate Auth package.

9327.9M1.2k](/packages/illuminate-auth)

PHPackages © 2026

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