New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

alex-rad/laravel-ldap-credentials

Extends Database and Eloquent User Authentication Providers (Laravel framework) to validate credentials (email and password) in LDAP
354 1
Install
composer require alex-rad/laravel-ldap-credentials
Latest Version:v1.0.1
PHP:>=5.5
Laravel:5
License:MIT
Last Updated:Oct 30, 2015
Links: GitHub  ·  Packagist
Maintainer: Alexander Radchenko

Laravel-LdapCredentials

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.

Installation

  1. Run composer require "alex-rad/laravel-ldap-credentials" to install package.

  2. Add LdapCredentials Service Provider to the config/app.php configuration file.

    'providers' => [
        ...
        LdapCredentials\Auth\AuthServiceProvider::class,
        ...
    ],
    
  3. 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', ''),
    ],
    
  4. Add LDAP settings to the environment .ENV configuration file (optional).

    LDAP_HOST=ldap.company.com
    
  5. Switch User Authentication Driver to databaseLdapCredentials or eloquentLdapCredentials driver in config/auth.php configuration file.

    'driver' => 'eloquentLdapCredentials',
    

    or

    'driver' => 'databaseLdapCredentials',
    
  6. Remove reset password by email and new user registration functions from application.

Related Packages

dvsa/authentication-ldap

A wrapper around LDAP

16,277 0
devaslanphp/filament-avatar

A complete and customizable User Avatar provider for your Filament project, and...

29,208 7
jeffersongoncalves/laravel-user

Base authenticatable User model, migration, factory and observer shared by the j...

4,774 1
smskin/laravel-tgwebapp-auth

Authentication guard for Telegram web app user integration

1,010 7

Version History

Version Released PHP Laravel License
v1.0.1 >=5.5 ^5.1 MIT
v1.0.0 >=5.5 >=5.1 MIT