Package Data | |
---|---|
Maintainer Username: | Krenor |
Maintainer Contact: | stanislav.goldmann@gmail.com (Stanislav Goldmann) |
Package Create Date: | 2015-10-07 |
Package Last Update: | 2017-09-27 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 15:00:58 |
Package Statistics | |
---|---|
Total Downloads: | 1,350 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 27 |
Total Watchers: | 3 |
Total Forks: | 6 |
Total Open Issues: | 4 |
Very basic READ ONLY LDAP authentication driver for Laravel 5.2+
Look HERE for the package for Laravel 5.1.
However, only the 5.2 Version will be maintained.
Add to your root composer.json and install with composer install
or composer update
{
require: {
"krenor/ldap-auth": "~2.1"
}
}
or use composer require krenor/ldap-auth
in your console.
Modify your config/app.php
file and add the service provider to the providers array.
Krenor\LdapAuth\LdapAuthServiceProvider::class,
php artisan vendor:publish
Now you're all set!
Update your config/auth.php
to use ldap as authentication and the LdapUser Class.
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'ldap-users',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'ldap-users' => [
'driver' => 'ldap',
'model' => \Krenor\LdapAuth\Objects\LdapUser::class,
],
]
If you have run php artisan vendor:publish
you should see the
ldap.php file in your config directory. Adjust the values as you need them.
Look up here for an Example or
Look up here for all Guard methods using $this->auth
.
Add tests - Your patch won't be accepted if it doesn't have tests.
Document any changes - Make sure the README.md
and any other relevant documentation are kept up-to-date.
Create feature branches - Use git checkout -b my-new-feature
One pull request per feature - If you want to do more than one thing, send multiple pull requests.
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
ldap-auth is distributed under the terms of the MIT license