Yii2 LDAP helper class
The PECL mbstring extension is required.
It is recommended to use composer to install the library.
$ composer require samkoch/yii2-ldapPut 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',
],
],
...
?>