samkoch / yii2-ldap
Yii2 LDAP helper class
Installs: 158
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
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',
],
],
...
?>