|Maintainer Contact:||firstname.lastname@example.org (Riccardo Ciman)|
|Package Create Date:||2015-06-09|
|Package Last Update:||2015-08-17|
|Last Refreshed:||2019-11-17 03:12:48|
|Total Open Issues:||0|
Lean and simple ldap provider for Laravel 5.1. Works only with Active Directory system.
When you need to authenticate your user against a ldap server (Active Directory system), while maintaining a users table in your database.
A provider and its service provider.
In your composer.json, as a required dependency, insert:
After that, open config/app.php and add to your service providers list
Then open config/auth.php and change your driver option
'driver' => 'ldap'
Open the .env file and add the required options
LDAPSERVER = auth.magrathea.com LDAPDOMAINNAME = MAGRATHEA\ USERNAMECREDENTIALSATTRIBUTE = username PASSWORDCREDENTIALSATTRIBUTE = password
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.