Download the PHP package aparticka/laravel-auth-ldap without Composer
On this page you can find all versions of the php package aparticka/laravel-auth-ldap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aparticka/laravel-auth-ldap
More information about aparticka/laravel-auth-ldap
Files in aparticka/laravel-auth-ldap
Package laravel-auth-ldap
Short Description Laravel 5 LDAP Authentication Driver
License MIT
Informations about the package laravel-auth-ldap
laravel-auth-ldap
LDAP authentication driver for Laravel 5
Installation
Adding via Composer
Add to composer.json and install with composer install
{
require: {
"aparticka/laravel-auth-ldap": "dev-master"
}
}
or use composer require aparticka/laravel-auth-ldap
Add to Laravel
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'
Configuration
There are two configuration files included, one for general options - auth-ldap.php
and one for the included LDAP provider adLDAP - adldap.php
.
auth-ldap.php
provider
array
- secondary provider to be used for authdriver
string
- the driver to usemust_exist
bool
- if the user must exist in the provider to log in
convert_fields
array
- maps dynamic properties on theAuthenticatable
user objectcredentials_fields
array
- the field names used for user credentialsusername
string
- the authentication field name used for the usernamepassword
string
- the authentication field name used for the password
username_field
string
- the LDAP field used for the username
adldap.php
Configuration variables used in creation of the adLDAP client. Documentation
Extending
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.
License
laravel-auth-ldap is distributed under the terms of the MIT license.
About
Created by Adam Particka (aparticka)