ken8203 / l5-openldap-auth by ken8203

An openldap auth driver for Laravel 5.
308
8
1
Package Data
Maintainer Username: ken8203
Maintainer Contact: ken8203@gmail.com (kcchung)
Package Create Date: 2015-07-19
Package Last Update: 2018-05-17
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:14:16
Package Statistics
Total Downloads: 308
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 8
Total Watchers: 1
Total Forks: 4
Total Open Issues: 0

Laravel 5 OpenLDAP Auth

An OpenLDAP authentication driver for Laravel 5.

Installation

Add to composer.json and install with composer install / composer update.

{
  require: {
    "kcchung/l5-openldap-auth": "dev-master"
  }
}

Add to Laravel

Open your config/app.php file and add the service provider to the providers array.

kcchung\L5OpenldapAuth\LdapAuthServiceProvider::class

Update your config/auth.php to use ldap driver.

'driver' => 'ldap'

Configuration

Manually create a config/ldap.php file and add the following:

<?php

return [
    'host'      => 'ldaps://example.com',
    'rdn'       => 'ou=System,dc=example,dc=com', // rdn used by the user configured below, optional
    'version'   => '3', // LDAP protocol version (2 or 3)
    
    'basedn'    => 'ou=People,dc=example,dc=com', // basedn for users
    'login_attribute' => 'uid', // login attributes for users
];

?>

Extending

If you wish to add your own functions, just modify any of the classes.

About

Created by Kuan-Chien Chung(kcchung)