2017 © Pedro Peláez
 

library ldap-laravel-provider

Lean and simple Ldap provider for Laravel 5.1

image

rici12/ldap-laravel-provider

Lean and simple Ldap provider for Laravel 5.1

  • Monday, August 17, 2015
  • by RiCi12
  • Repository
  • 3 Watchers
  • 2 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

LdapLaravelProvider

Lean and simple ldap provider for Laravel 5.1. Works only with Active Directory system., (*1)

When is this package useful?

When you need to authenticate your user against a ldap server (Active Directory system), while maintaining a users table in your database., (*2)

What is included?

A provider and its service provider., (*3)

How to install

In your composer.json, as a required dependency, insert:, (*4)

"rici12/ldap-laravel-provider": "0.*"

Then run, (*5)

composer update

After that, open config/app.php and add to your service providers list, (*6)

RiCi12\LdapLaravelProvider\ServiceProvider\LdapServiceProvider::class

Then open config/auth.php and change your driver option, (*7)

'driver' => 'ldap'

Open the .env file and add the required options, (*8)

LDAPSERVER = auth.magrathea.com 
LDAPDOMAINNAME = MAGRATHEA\ 
USERNAMECREDENTIALSATTRIBUTE = username 
PASSWORDCREDENTIALSATTRIBUTE = password

Work flow

  1. Try to connect to the provided server
  2. Check if input credentials are correct
  3. If true, search for a user from users table (compairing 'username' attribute)
  4. Return the user, if found; otherwise, throws an Exception.

Use case

In my last project I needed to let the user authenticate with their domain credentials while not letting everybody get access to the homepage; plus, I was asked to implement a really simple roles system (read/write access). So i implemented this authentication service provider wich fits great with Laravel Auth system: you'll be able to access the user from Auth facade., (*9)

The Versions

17/08 2015

dev-master

9999999-dev

Lean and simple Ldap provider for Laravel 5.1

  Sources   Download

MIT

The Requires

 

by Riccardo Ciman

laravel ldap

17/08 2015

0.4

0.4.0.0

Lean and simple Ldap provider for Laravel 5.1

  Sources   Download

MIT

The Requires

 

by Riccardo Ciman

laravel ldap

16/06 2015

0.3

0.3.0.0

Lean and simple Ldap provider for Laravel 5.1

  Sources   Download

MIT

The Requires

 

by Riccardo Ciman

laravel ldap

16/06 2015

0.2

0.2.0.0

Lean and simple Ldap provider for Laravel 5.1

  Sources   Download

MIT

The Requires

 

by Riccardo Ciman

laravel ldap

11/06 2015

0.1

0.1.0.0

Lean and simple Ldap provider for Laravel 5.1

  Sources   Download

MIT

The Requires

 

by Riccardo Ciman

laravel ldap