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

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

walker-development/ldap-auth
============================

Basic readonly authentication via LDAP for Laravel 9.0+

2.3.4(1y ago)052MITPHPPHP 8.\*

Since Oct 7Pushed 1y agoCompare

[ Source](https://github.com/WalkerDevelopment/ldap-auth)[ Packagist](https://packagist.org/packages/walker-development/ldap-auth)[ RSS](/packages/walker-development-ldap-auth/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (13)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/2a33df03e5454edbf1b157bd24999919535f609f7158afc0221ac0556d3bb370/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77616c6b65722d646576656c6f706d656e742f6c6461702d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/walker-development/ldap-auth)[![License](https://camo.githubusercontent.com/4b73dc0a844729111ffbf118c1dbb5f917202e0361a826cfe2dd50d03d9f4939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77616c6b65722d646576656c6f706d656e742f6c6461702d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/walker-development/ldap-auth)

ldap-auth
=========

[](#ldap-auth)

Very basic **READ ONLY** LDAP authentication driver for [Laravel 5.5+](http://laravel.com/)

Look [**HERE**](https://github.com/krenor/ldap-auth/tree/1.1.0) for the package for Laravel 5.1. Look [**HERE**](https://github.com/krenor/ldap-auth/tree/master) for the package for Laravel 5.2. However, only the 5.2 Version will be maintained.

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

[](#installation)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

Add to your root composer.json and install with `composer install` or `composer update`

```
{
  require: {
    "walker-development/ldap-auth": "~2.3"
  }
}

```

or use `composer require walker-development/ldap-auth` in your console.

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

Modify your `config/app.php` file and add the service provider to the providers array.

```
WalkerDevelopment\LdapAuth\LdapAuthServiceProvider::class,

```

### Step 3: Publish the configuration file by running:

[](#step-3-publish-the-configuration-file-by-running)

`php artisan vendor:publish`

Now you're all set!

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

[](#configuration)

### Step 1: Tweak the basic authentication

[](#step-1-tweak-the-basic-authentication)

Update your `config/auth.php` to use **ldap** as authentication and the **LdapUser** Class.

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

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

	'ldap-users' => [
		'driver' => 'ldap',
		'model'  => \WalkerDevelopment\LdapAuth\Objects\LdapUser::class,
	],
]
```

### Step 2: Adjust the LDAP config to your needs

[](#step-2-adjust-the-ldap-config-to-your-needs)

If you have run `php artisan vendor:publish` you should see the ldap.php file in your config directory. Adjust the values as you need them. If your admin user has a different baseDN, include that option as admin\_base\_dn, otherwise it will use the base\_dn set.

Usage
-----

[](#usage)

### Authentication

[](#authentication)

Look up here for an [Example](https://github.com/WalkerDevelopment/ldap-auth/blob/master/EXAMPLE.md) or Look up here for all [Guard methods](https://github.com/neoascetic/laravel-framework/blob/master/src/Illuminate/Auth/Guard.php) using `$this->auth`.

Contributing
------------

[](#contributing)

### Pull Requests

[](#pull-requests)

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)**
- **Add tests** - Your patch won't be accepted if it doesn't have tests.
- **Document any changes** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
- **Create feature branches** - Use `git checkout -b my-new-feature`
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.

Licence
-------

[](#licence)

ldap-auth is distributed under the terms of the [MIT license](https://github.com/WalkerDevelopment/ldap-auth/blob/master/LICENSE.md)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~1 days

Total

10

Last Release

379d ago

Major Versions

1.1.0 → 2.0.02016-02-08

PHP version history (3 changes)1.0.0PHP &gt;=5.5.9

2.2.0PHP 7.\*

2.3.0PHP 8.\*

### Community

Maintainers

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

---

Top Contributors

[![WalkerDevelopment](https://avatars.githubusercontent.com/u/32250527?v=4)](https://github.com/WalkerDevelopment "WalkerDevelopment (9 commits)")[![krenor](https://avatars.githubusercontent.com/u/13726968?v=4)](https://github.com/krenor "krenor (8 commits)")[![drahosistvan](https://avatars.githubusercontent.com/u/759009?v=4)](https://github.com/drahosistvan "drahosistvan (1 commits)")[![michael-agiloft](https://avatars.githubusercontent.com/u/59976650?v=4)](https://github.com/michael-agiloft "michael-agiloft (1 commits)")

---

Tags

laravelldapactive directoryLaravel Authlaravel-authenticationLDAP Authenticationlaravel 9.xWalker Development

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[imanghafoori/laravel-masterpass

A minimal yet powerful package to help you easily impersonate your users.

367244.1k](/packages/imanghafoori-laravel-masterpass)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)[imanghafoori/laravel-tokenize-login

Helps you generate and send a random token to have passwordless login.

83214.7k](/packages/imanghafoori-laravel-tokenize-login)[imanghafoori/laravel-password-history

A package to keep a history of all password changes of users

70190.9k1](/packages/imanghafoori-laravel-password-history)

PHPackages © 2026

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