Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
ldap-auth
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
German Shvetsov
ldap-auth
Commits
e64aa30b
Commit
e64aa30b
authored
Feb 08, 2016
by
Stan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated README.md for Laravel 5.2
The auth config differs a bit, so readme has to bee updated.
parent
11ea5411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
README.md
README.md
+23
-7
No files found.
README.md
View file @
e64aa30b
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment