PHPackages                             rjmangini/ldap-auth - 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. rjmangini/ldap-auth

ActiveLibrary

rjmangini/ldap-auth
===================

Laravel 5 auth provider for LDAP and AD

00PHP

Since Jan 30Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

LDAP Auth for laravel
=====================

[](#ldap-auth-for-laravel)

Based on a gist by rezen

Added the ability to query the database to check if the user is authorized to use the app.

Configuration
-------------

[](#configuration)

In your terminal/shell run

```
php artisan vendor:publish --provider="rjmangini\LDAP\LDAPServiceProvider"

```

Then change this values in your files:

```
// in your config/app.php add the provider to the service providers key

'providers' => [
    /* ... */

    'rjmangini\LDAP\LDAPServiceProvider',
]
```

```
// in your config/auth.php

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'ldap',
        ],
    ],

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

```
// in your config/ldap.php
'server' => 'YOUR-LDAP-SERVER',
'domain' => 'YOUR-LDAP-DOMAIN',
```

Also, add a username field to your user migration

```
// create_user_table migration
$table->string('username')->unique();
```

### License

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/01123392665645ee9db2d9eb783bc623eeb0310040bab1d90e212ef71a7d7692?d=identicon)[rjmangini](/maintainers/rjmangini)

---

Top Contributors

[![rjmangini-slm](https://avatars.githubusercontent.com/u/82906259?v=4)](https://github.com/rjmangini-slm "rjmangini-slm (2 commits)")

### Embed Badge

![Health badge](/badges/rjmangini-ldap-auth/health.svg)

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

PHPackages © 2026

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