samkoch / yii2-ldap
Yii2 LDAP 辅助类
1.2.2
2017-05-17 11:27 UTC
Requires
- yiisoft/yii2: *
README
Yii2 LDAP 辅助类
安装
需要 PECL mbstring 扩展。
建议使用 composer 来安装库。
$ composer require samkoch/yii2-ldap
使用 Ldap 作为 Yii 组件(Yii::$app->ldap)
将以下内容放入应用程序配置(web.php 和/或 console.php)
<?php
$config = [
...
'ldap' => [
'class' => 'samkoch/yii2ldap/Ldap',
'config' => [
'host' => 'ldap.example.com',
'port' => '389',
'domain' => 'exampledomain',
'baseDn' => 'DC=example,
'username' => 'user',
'password' => 'pass',
],
],
...
?>