2017 © Pedro Peláez
 

yii2-extension yii2-adldap-module

yii2 adldap extention (wrapper for adldap/adLDAP Module)

image

fiamma06/yii2-adldap-module

yii2 adldap extention (wrapper for adldap/adLDAP Module)

  • Wednesday, January 29, 2014
  • by Fiamma06
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-adldap-module

Yii2 extension for adLDAP (https://packagist.org/packages/adldap/adldap), (*1)

Installation

Composer

The preferred way to install this extension is through Composer., (*2)

Either run, (*3)

php composer.phar require edvlerblog/yii2-adldap-module "v1.0.1"

or add, (*4)

"edvlerblog/yii2-adldap-module": "v1.0.1"

to the require section of your composer.json, (*5)

Configuration

Add this code in your components section of the application configuration (eg. config/main.php):, (*6)

'components' => [
    ..... 

    'ldap' => [
        'class'=>'Edvlerblog\Ldap',
        'options'=> [
                'ad_port'      => 389,
                'domain_controllers'    => array('AdServerName1','AdServerName2'),
                'account_suffix' =>  '@test.lan',
                'base_dn' => "DC=test,DC=lan",
                // for basic functionality this could be a standard, non privileged domain user (required)
                'admin_username' => 'ActiveDirectoryUser',
                'admin_password' => 'StrongPassword'
            ]
    ]

    ...
]

More abount config options, (*7)

Examples

To use the yii2-adldap-module you need only one line. You can use the yii2-adldap-module everywhere where \Yii::$app works (Controllers, Widgets,...)., (*8)

Authenticate User:, (*9)

$authUser = \Yii::$app->ldap->authenticate("username","password");
var_dump ($authUser);

Group membership of a User:, (*10)

$groups = \Yii::$app->ldap->user()->groups("username");
var_dump($groups);  

Get informations about a Group:, (*11)

$groupinfo= \Yii::$app->ldap->group()->info("example_group");
var_dump($groupinfo);  

...., (*12)

More examples, (*13)

DOCUMENTATION

yii2-adldap-module is only a wrapper class. Feel free to learn more about the underlying adLDAP., (*14)

You can find the website at https://github.com/adldap/adLDAP/ or the class documentation at, (*15)

https://github.com/adldap/adLDAP/wiki/adLDAP-Developer-API-Reference, (*16)

The Versions

29/01 2014

dev-master

9999999-dev http://www.edvler-blog.de

yii2 adldap extention (wrapper for adldap/adLDAP Module)

  Sources   Download

LGPL-2.1

The Requires

 

yii2 ldap active directory ad adldap

29/01 2014

v1.0.0

1.0.0.0 http://www.edvler-blog.de

yii2 adldap extention (wrapper for adldap/adLDAP Module)

  Sources   Download

LGPL-2.1

The Requires

 

yii2 ldap active directory ad adldap

29/01 2014

1.0.1

1.0.1.0 http://www.edvler-blog.de

yii2 adldap extention (wrapper for adldap/adLDAP Module)

  Sources   Download

LGPL-2.1

The Requires

 

yii2 ldap active directory ad adldap