Package Data | |
---|---|
Maintainer Username: | aparticka |
Maintainer Contact: | a.particka@gmail.com (Adam Particka) |
Package Create Date: | 2015-03-21 |
Package Last Update: | 2015-07-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:02:46 |
Package Statistics | |
---|---|
Total Downloads: | 2,412 |
Monthly Downloads: | 60 |
Daily Downloads: | 9 |
Total Stars: | 23 |
Total Watchers: | 5 |
Total Forks: | 4 |
Total Open Issues: | 2 |
LDAP authentication driver for Laravel 5
Add to composer.json and install with composer install
{
require: {
"aparticka/laravel-auth-ldap": "dev-master"
}
}
or use composer require aparticka/laravel-auth-ldap
Modify your config/app.php
file and add the service provider to the providers array.
'LaravelAuthLdap\AuthLdapServiceProvider'
Copy the configuration files to your app.
php artisan vendor:publish --provider="LaravelAuthLdap\AuthLdapServiceProvider"
Update your config/auth.php
to use the ldap
driver.
'driver' => 'ldap'
There are two configuration files included, one for general options - auth-ldap.php
and one for the included LDAP provider adLDAP - adldap.php
.
provider
array
- secondary provider to be used for auth
driver
string
- the driver to usemust_exist
bool
- if the user must exist in the provider to log inconvert_fields
array
- maps dynamic properties on the Authenticatable
user objectcredentials_fields
array
- the field names used for user credentials
username
string
- the authentication field name used for the usernamepassword
string
- the authentication field name used for the passwordusername_field
string
- the LDAP field used for the usernameConfiguration variables used in creation of the adLDAP client. Documentation
If you wish to extend any of the classes, just add your own service provider and bind your custom implementations to the provided interfaces. The provided implementations were designed to be extended so you can use them as a base to extend from if you wish.
laravel-auth-ldap is distributed under the terms of the MIT license.
Created by Adam Particka (aparticka)