Package Data | |
---|---|
Maintainer Username: | Alexander Radchenko |
Maintainer Contact: | radchenkosasha@gmail.com (Alexander Radchenko) |
Package Create Date: | 2015-10-27 |
Package Last Update: | 2015-10-30 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:13:40 |
Package Statistics | |
---|---|
Total Downloads: | 353 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 5 |
Total Forks: | 2 |
Total Open Issues: | 1 |
Extends Database and Eloquent User Authentication Drivers (Laravel framework) to validate credentials (email and password) in LDAP.
Password field should be removed from Users table and model.
It does not support to reset password by email and new user registration.
Run composer require "alex-rad/laravel-ldap-credentials"
to install package.
Add LdapCredentials Service Provider to the config/app.php
configuration file.
'providers' => [
...
LdapCredentials\Auth\AuthServiceProvider::class,
...
],
Add LDAP settings to the config/auth.php
configuration file.
/*
|--------------------------------------------------------------------------
| LDAP Settings
|--------------------------------------------------------------------------
|
| For "databaseLdapCredentials" or "eloquentLdapCredentials" user
| authentication drivers.
|
*/
'ldap' => [
'host' => env('LDAP_HOST', 'ldap.server.com'),
'port' => env('LDAP_PORT', 389),
'user' => env('LDAP_USER', NULL),
'password' => env('LDAP_PASSWORD', NULL),
'base' => env('LDAP_BASE', ''),
],
Add LDAP settings to the environment .ENV
configuration file (optional).
LDAP_HOST=ldap.company.com
Switch User Authentication Driver to databaseLdapCredentials
or
eloquentLdapCredentials
driver in config/auth.php
configuration file.
'driver' => 'eloquentLdapCredentials',
or
'driver' => 'databaseLdapCredentials',
Remove reset password by email and new user registration functions from application.