承接 aparticka/laravel-auth-ldap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

aparticka/laravel-auth-ldap

最新稳定版本:0.1.3

Composer 安装命令:

composer require aparticka/laravel-auth-ldap

包简介

Laravel 5 LDAP Authentication Driver

README 文档

README

Build Status

LDAP authentication driver for Laravel 5

Installation

Adding via Composer

Add to composer.json and install with composer install

{
  require: {
    "aparticka/laravel-auth-ldap": "dev-master"
  }
}

or use composer require aparticka/laravel-auth-ldap

Add to Laravel

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

'LaravelAuthLdap\AuthLdapServiceProvider'

Copy the configuration files to your app.

php artisan vendor:publish --provider="LaravelAuthLdap\AuthLdapServiceProvider"

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

'driver' => 'ldap'

Configuration

There are two configuration files included, one for general options - auth-ldap.php and one for the included LDAP provider adLDAP - adldap.php.

auth-ldap.php

  • provider array - secondary provider to be used for auth
    • driver string - the driver to use
    • must_exist bool - if the user must exist in the provider to log in
  • convert_fields array - maps dynamic properties on the Authenticatable user object
  • credentials_fields array - the field names used for user credentials
    • username string - the authentication field name used for the username
    • password string - the authentication field name used for the password
  • username_field string - the LDAP field used for the username

adldap.php

Configuration variables used in creation of the adLDAP client. Documentation

Extending

If you wish to extend any of the classes, just add your own service provider and bind your custom implementations to the provided interfaces. The provided implementations were designed to be extended so you can use them as a base to extend from if you wish.

License

laravel-auth-ldap is distributed under the terms of the MIT license.

About

Created by Adam Particka (aparticka)

统计信息

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

GitHub 信息

  • Stars: 23
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-21