This is based off of Yuri Moens L4OpenLdap Provider
An OpenLDAP authentication driver for Laravel 4.
Add the following to your composer.json
file.
require {
"mattbrown/ldapauth": "1.*"
}
composer update
.
In app/config/app.php
:
Add 'Mattbrown\Ldapauth\LdapauthServiceProvider'
to providers array.
composer dump-auto
Open app/config/auth.php
and change the authentication driver to ldap
.
Run php artisan vendor:publish --provider="Mattbrown\Ldapauth\LdapauthServiceProvider"
, then find app/config/ldap.php
and adjust the config file for your LDAP settings.
Profit Dollars.