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

1.2.2 2017-05-17 11:27 UTC

This package is auto-updated.

Last update: 2024-10-19 00:15:55 UTC


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