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

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

rodrigopedra/ldap-eloquent-auth
===============================

Laravel 5 auth provider for LDAP and AD

v2.0(8y ago)2179[1 issues](https://github.com/rodrigopedra/ldap-eloquent-provider/issues)MITPHP

Since Dec 26Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)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.

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

[](#installation)

```
composer require rodrigopedra/ldap-eloquent-auth

```

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

[](#configuration)

In your terminal/shell run

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

```

Then change this values in your files:

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

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

    'RodrigoPedra\LDAP\LDAPServiceProvider',
]
```

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

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

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

```
