aimme/laravel5-ldap
Larablocks Analysis
aimme/laravel5-ldap works with Laravel 5 (latest release 1.0.1, Nov 9, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Nov 9, 2016)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 9, 2016.
- No releases in the last 12 months.
- First released: Nov 9, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.
| Install | |
|---|---|
composer require aimme/laravel5-ldap |
|
| Latest Version: | 1.0.1 |
| PHP: | >=5.6.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Nov 11, 2016 |
| Links: | GitHub · Packagist |
- Tested only on Laravel 5.3
- You will need to have user Eloquent Model, and the database users table should have email field
- You could use both default Auth and Ldap
- Ldap facade works as Auth. Its the gate for ldap authentication
- Users should be in the providers (in this case users) table and Active Directory, password field is not required.
- See below to configure provider
####Installation
1 - Require this package with composer:
composer require aimme/laravel5-ldap
2 - add provider
file: config/app.php
'providers' => [
....
Aimme\Ldap\LdapServiceProvider::class,
];
3 - add alias
file: config/app.php
'aliases' => [
....
'Ldap' => Aimme\Ldap\Facades\Ldap::class,
....
];
4 - run these artisan commands
php artisan make:ldap-auth
php artisan vendor:publish --provider="Aimme\Ldap\LdapServiceProvider"
5 - add middleware
file: app/Http/Kernel.php
protected $routeMiddleware = [
...
'ldap' => \Aimme\Ldap\Middleware\Authenticate::class,
...
];
6 - bring following configuration changes to the ldap config file
file: config/ldap.php
-
change providers array users model to your Eloquent user model path if it's different
'providers' => [ 'users' => [ 'driver' => 'ldap', 'model' => App\User::class, ], -
set your environment variables.
'domain' => env('LDAP_DOMAIN', 'MYDOMAIN'), 'host' => env('LDAP_HOST', 'ldap://aimme.mydomain.net'),
See http://php.net/manual/en/function.ldap-connect.php
- host(LDAP_HOST) is the $host eg: ldap://aimme.mydomain.net
See http://php.net/manual/en/function.ldap-bind.php
- domain(LDAP_DOMAIN) is the $bind_rdn example: MYDOMAIN
Alternatives to aimme/laravel5-ldap
Automatically boot an LDAP emulator while working in a local environment.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.1 | >=5.6.0 | 5.3.* | MIT | |
| 1.0.0 | >=5.6.0 | 5.3.* | MIT |