adldap2/adldap2-kohana
最新稳定版本:3.0.1
Composer 安装命令:
composer require adldap2/adldap2-kohana
包简介
Module for AD/LDAP support in Kohana 3 (includes an Auth driver).
README 文档
README
🚨 Abandoned 🚨
This package has been abandoned. Kohana itself has also been abandoned, so no further updates will be made on this package.
A Kohana 3.3 module that wraps Adldap2 to provide Active Directory and LDAP authentication.
1. Install
Copy the module to the kadldap directory in your MODPATH, or install with
Composer by adding the following to your
composer.json file (to get the latest stable version):
"adldap2/adldap2-kohana": "3.*"
Then enable the module with Kohana::modules() (usually in bootstrap.php).
2. Configure
Set up the Auth config file:
<?php defined('SYSPATH') OR die('No direct access allowed.');
return array('driver' => 'LDAP');
Set up the Kadldap config file by copying MODPATH/kadldap/config/kadldap.php
to APPPATH/config/kadldap.php and editing the values therein.
3. Use
Use Auth as usual. e.g.:
Auth::instance()->login($username, $password);
or:
Auth::instance()->logged_in('Security Group Name');
It's also possible to get a list of a user's Security Groups (roles, in Kohana parlance) with:
Auth::instance()->get_roles();
4. Contribute
Please report all issues at https://github.com/Adldap2/Adldap2-Kohana/issues
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-28