samkoch / yii2-ldap
Yii2 LDAP helper class
1.2.2
2017-05-17 11:27 UTC
Requires
- yiisoft/yii2: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Yii2 LDAP helper class
Installation
The PECL mbstring extension is required.
It is recommended to use composer to install the library.
$ composer require samkoch/yii2-ldap
Using Ldap as a Yii component (Yii::$app->ldap)
Put the following in you application configuration (web.php and/or 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',
],
],
...
?>