2017 © Pedro Peláez
 

library ldap-auth

Basic readonly authentication via LDAP for Laravel 5.5+

image

krenor/ldap-auth

Basic readonly authentication via LDAP for Laravel 5.5+

  • Wednesday, September 27, 2017
  • by Krenor
  • Repository
  • 3 Watchers
  • 25 Stars
  • 490 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 5 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

Latest Stable Version License, (*1)

ldap-auth

Very basic READ ONLY LDAP authentication driver for Laravel 5.2+, (*2)

Look HERE for the package for Laravel 5.1.
However, only the 5.2 Version will be maintained., (*3)

Installation

Step 1: Install Through Composer

Add to your root composer.json and install with composer install or composer update, (*4)

{
  require: {
    "krenor/ldap-auth": "~2.1"
  }
}

or use composer require krenor/ldap-auth in your console., (*5)

Step 2: Add the Service Provider

Modify your config/app.php file and add the service provider to the providers array., (*6)

Krenor\LdapAuth\LdapAuthServiceProvider::class,

Step 3: Publish the configuration file by running:

php artisan vendor:publish, (*7)

Now you're all set!, (*8)

Configuration

Step 1: Tweak the basic authentication

Update your config/auth.php to use ldap as authentication and the LdapUser Class., (*9)

'guards' => [
    'web' => [
        'driver'   => 'session',
        'provider' => 'ldap-users',
    ],
],

'providers' => [
    'users'      => [
        'driver' => 'eloquent',
        'model'  => App\User::class,
    ],

    'ldap-users' => [
        'driver' => 'ldap',
        'model'  => \Krenor\LdapAuth\Objects\LdapUser::class,
    ],
]

Step 2: Adjust the LDAP config to your needs

If you have run php artisan vendor:publish you should see the
ldap.php file in your config directory. Adjust the values as you need them., (*10)

Usage

Authentication

Look up here for an Example or Look up here for all Guard methods using $this->auth., (*11)

Contributing

Pull Requests

  • PSR-2 Coding Standard, (*12)

  • Add tests - Your patch won't be accepted if it doesn't have tests., (*13)

  • Document any changes - Make sure the README.md and any other relevant documentation are kept up-to-date., (*14)

  • Create feature branches - Use git checkout -b my-new-feature, (*15)

  • One pull request per feature - If you want to do more than one thing, send multiple pull requests., (*16)

  • Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting., (*17)

Licence

ldap-auth is distributed under the terms of the MIT license, (*18)

The Versions

27/09 2017

dev-develop

dev-develop

Basic readonly authentication via LDAP for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth krenor ldap authentication laravel authentication laravel 5.5

26/12 2016

dev-master

9999999-dev

Basic readonly authentication via LDAP for Laravel 5.2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth laravel 5.2 krenor ldap authentication laravel authentication

31/03 2016

2.1.0

2.1.0.0

Basic readonly authentication via LDAP for Laravel 5.2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth laravel 5.2 krenor ldap authentication laravel authentication

08/02 2016

2.0.0

2.0.0.0

Basic readonly authentication via LDAP for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth laravel 5.2 krenor ldap authentication laravel authentication

30/10 2015

1.1.0

1.1.0.0

Basic readonly authentication via LDAP for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth krenor ldap authentication laravel authentication laravel 5.1.11

07/10 2015

1.0.0

1.0.0.0

Basic readonly authentication via LDAP for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ldap active directory laravel auth krenor ldap authentication laravel authentication laravel 5.1.11