vim4vim/yii2-ldap

Yii2 LDAP helper class

★ 0Forks 0PHPGitHub ↗Compare

README

Yii2 LDAP

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',
  ],
],
...
?>

Contributors

vim4vim

Issues