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

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

aparticka/laravel-auth-ldap
===========================

Laravel 5 LDAP Authentication Driver

0.1.3(10y ago)232.8k4[2 issues](https://github.com/aparticka/laravel-auth-ldap/issues)MITPHPPHP &gt;=5.4.0

Since Mar 21Pushed 10y ago4 watchersCompare

[ Source](https://github.com/aparticka/laravel-auth-ldap)[ Packagist](https://packagist.org/packages/aparticka/laravel-auth-ldap)[ RSS](/packages/aparticka-laravel-auth-ldap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

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

[](#laravel-auth-ldap)

[![Build Status](https://camo.githubusercontent.com/82d8b50d84f26253ab8bc81c612b2f9527ca9f215f7680fdaf0715ca1f785b9a/68747470733a2f2f7472617669732d63692e6f72672f617061727469636b612f6c61726176656c2d617574682d6c6461702e706e67)](https://travis-ci.org/aparticka/laravel-auth-ldap)

LDAP authentication driver for [Laravel 5](http://laravel.com)

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

[](#installation)

### Adding via Composer

[](#adding-via-composer)

Add to composer.json and install with `composer install`

```
{
  require: {
    "aparticka/laravel-auth-ldap": "dev-master"
  }
}

```

or use `composer require aparticka/laravel-auth-ldap`

### Add to Laravel

[](#add-to-laravel)

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

```
'LaravelAuthLdap\AuthLdapServiceProvider'

```

Copy the configuration files to your app.

```
php artisan vendor:publish --provider="LaravelAuthLdap\AuthLdapServiceProvider"

```

Update your `config/auth.php` to use the `ldap` driver.

```
'driver' => 'ldap'

```

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

[](#configuration)

There are two configuration files included, one for general options - `auth-ldap.php` and one for the included LDAP provider [adLDAP](https://github.com/adldap/adLDAP) - `adldap.php`.

### auth-ldap.php

[](#auth-ldapphp)

- `provider` `array` - secondary provider to be used for auth
    - `driver` `string` - the driver to use
    - `must_exist` `bool` - if the user must exist in the provider to log in
- `convert_fields` `array` - maps dynamic properties on the `Authenticatable` user object
- `credentials_fields` `array` - the field names used for user credentials
    - `username` `string` - the authentication field name used for the username
    - `password` `string` - the authentication field name used for the password
- `username_field` `string` - the LDAP field used for the username

### adldap.php

[](#adldapphp)

Configuration variables used in creation of the adLDAP client. [Documentation](https://github.com/adldap/adLDAP)

Extending
---------

[](#extending)

If you wish to extend any of the classes, just add your own service provider and bind your custom implementations to the provided interfaces. The provided implementations were designed to be extended so you can use them as a base to extend from if you wish.

License
-------

[](#license)

laravel-auth-ldap is distributed under the terms of the MIT license.

About
-----

[](#about)

Created by [Adam Particka (aparticka)](https://github.com/aparticka)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

4

Last Release

3953d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b0c2343e560f0a83c32f515ca27d67482d639d4e29186a792d49306d95a49d3?d=identicon)[aparticka](/maintainers/aparticka)

---

Top Contributors

[![iamdmhero](https://avatars.githubusercontent.com/u/71006970?v=4)](https://github.com/iamdmhero "iamdmhero (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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