kcchung/l5-openldap-auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kcchung/l5-openldap-auth

Composer 安装命令:

composer require kcchung/l5-openldap-auth

包简介

An openldap auth driver for Laravel 5.

README 文档

README

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)

统计信息

  • 总下载量: 308
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-19