An OpenLDAP authentication driver for Laravel 4.
Add the following to your composer.json
file.
require {
"fgreinus/ldap-auth-driver": "dev-master"
}
Run composer update
.
Open app/config/app.php
and add:
fgreinus\LdapAuthDriver\LdapAuthDriverServiceProvider
Open app/config/auth.php
and change the authentication driver to ldap
.
Run php artisan config:publish fgreinus/ldap-auth-driver
and adjust the config file for your LDAP settings.
It can be found in app/config/packages/fgreinus/ldap-auth-driver
.
Thanks to yuri-moens and Diego Navarro