nonzod / yii2-zend-ldap
yii2 ldap 扩展(zendframework/zend-ldap 模块的封装)
0.0.7
2016-04-12 00:00 UTC
Requires
- yiisoft/yii2: *
- zendframework/zend-ldap: ~2.7.0
This package is not auto-updated.
Last update: 2024-09-14 19:04:06 UTC
README
需求
- Yii2
- PHP中的LDAP支持
使用方法
安装此扩展的首选方法是通过 Composer。
运行以下命令之一:
php composer.phar require nonzod/yii2-zend-ldap "0.0.7"
或添加以下内容到您的 composer.json 文件的 require 部分中:
"nonzod/yii2-zend-ldap": ">=0.0.7"
配置
<?php ... 'components' => [ 'ldap' => [ 'class' => 'nonzod\Ldap', 'config' => [ 'host' => 'localhost', 'port' => 389, 'username' => 'CN=admin,DC=example,DC=com', 'password' => 'SuperSecretPassword', 'bindRequiresDn' => true, 'baseDn' => 'OU=People,DC=example,DC=com', 'accountDomainName' => 'example.com' ] ], ...
##资源
感谢: "Matthias Maderer",此模块受其项目 "edvlerblog/yii2-adldap-module" 的启发。