2017 © Pedro Peláez
 

library ldap-connector

Easily authenticate with LDAP in Laravel

image

cirkut/ldap-connector

Easily authenticate with LDAP in Laravel

  • Friday, March 6, 2015
  • by cirkut
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Ldap-connector

Provides an solution for authentication users with LDAP for Laravel 5.0.x. It uses ADLDAP library to create a bridge between Laravel and LDAP, (*1)

Installation

  1. Install this package through Composer for Laravel v5.0:, (*2)

    composer require dsdevbe/ldap-connector:3.*
    

    If you still want to use Ldap-connector for Laravel v4.2 please refer to the following package, (*3)

    composer require dsdevbe/ldap-connector:2.*
    
  2. Change the authentication driver in the Laravel config to use the ldap driver. You can find this in the following file config/auth.php, (*4)

    'driver' => 'ldap',
    
  3. Create a new configuration file ldap.php in the configuration folder of Laravel app/config/ldap.php and modify to your needs. For more detail of the configuration you can always check on ADLAP documentation, (*5)

    return array(
        'account_suffix'=>  "@domain.local",
        'domain_controllers'=>  array("192.168.0.1", "dc02.domain.local"), // Load balancing domain controllers
        'base_dn'   =>  'DC=domain,DC=local',
    );
    
  4. Once this is done you arrived at the final step and you will need to add a service provider. Open config/app.php, and add a new item to the providers array., (*6)

    'Dsdevbe\LdapConnector\LdapConnectorServiceProvider'
    

Usage

The LDAP plugin is an extension of the AUTH class and will act the same as normal usage with Eloquent driver., (*7)

```
if (Auth::attempt(array('username' => $email, 'password' => $password)))
{
    return Redirect::intended('dashboard');
}
```

You can find more examples on Laravel Auth Documentation on using the Auth:: function., (*8)

The Versions

06/03 2015

dev-master

9999999-dev https://github.com/cirkut/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Josh Allen

laravel ldap

26/02 2015

3.0.2

3.0.2.0 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

22/02 2015

3.0.1

3.0.1.0 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

22/02 2015

dev-dev

dev-dev https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

06/02 2015

3.0.0

3.0.0.0 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

28/10 2014

dev-Laravel4.2

dev-Laravel4.2 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

28/10 2014

2.0.0

2.0.0.0 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Dsdevbe

laravel ldap

22/04 2014

1.0.0

1.0.0.0 https://github.com/dsdevbe/ldap-connector

Easily authenticate with LDAP in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Dsdevbe

laravel ldap