Commit e64aa30b authored by Stan's avatar Stan

Updated README.md for Laravel 5.2

The auth config differs a bit, so readme has to bee updated.
parent 11ea5411
......@@ -3,7 +3,7 @@
# ldap-auth
Very basic **READ ONLY** LDAP authentication driver for [Laravel 5.1.11+](http://laravel.com/)
Very basic **READ ONLY** LDAP authentication driver for [Laravel 5.2+](http://laravel.com/)
## Installation
......@@ -13,7 +13,7 @@ Add to your root composer.json and install with `composer install` or `composer
{
require: {
"krenor/ldap-auth": "~1.1"
"krenor/ldap-auth": "~2.0"
}
}
......@@ -33,9 +33,26 @@ Modify your `config/app.php` file and add the service provider to the providers
Update your `config/auth.php` to use **ldap** as authentication and the **LdapUser** Class.
'driver' => 'ldap',
'model' => Krenor\LdapAuth\Objects\LdapUser::class,
```php
'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,
],
]
```
### Step 2: Create an LDAP config
......@@ -96,4 +113,4 @@ Look up here for all [Guard methods](https://github.com/neoascetic/laravel-frame
## Licence
ldap-auth is distributed under the terms of the [MIT license](https://github.com/krenor/ldap-auth/blob/master/LICENSE.md)
\ No newline at end of file
ldap-auth is distributed under the terms of the [MIT license](https://github.com/krenor/ldap-auth/blob/master/LICENSE.md)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment