Download the PHP package edvlerblog/yii2-adldap-module without Composer

On this page you can find all versions of the php package edvlerblog/yii2-adldap-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-adldap-module

yii2-adldap-module v6 (wrapper for Adldap2 v10)

Yii2 extension for Adldap2 (https://packagist.org/packages/adldap2/adldap2)

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads License

Please read this if you upgrade from older versions to v5 or v6

Adldap2 changed option keys in version 9. If you upgrade from a previous version you have to change your config/web.conf (basic template) OR common/config/main.conf (advanced template) and your config/console.conf (basic template) OR console/config/main.conf (advanced template).

For all Adldap 2 options see https://adldap2.github.io/Adldap2/#/setup?id=array-example-with-all-options.

The mandatory changed options are:

If you configure your username append your domain with @domain.name. Otherwise you maybe get Adldap\Auth\Bindexception: Invalid Credentials.

See Configuration section for example.

Howto contribute or support the extension

As you as delevoper know, it's not only source code that matters. The best code is worthless if no documentation exists. My focus is to provide a comprehensive documentation for this extension. This should help YOU to do your task fast and without struggle. Updating this extension take days starting with programming, writing the docs and write test for the code and the docs.

I'am glad to see that many persons use the plugin!

If you want to help you can do the following:

If this project help you reduce time to develop, you can spend me a cup of coffee :)

paypal

List of content

Version

Current Version: yii2-adldap-module Releases beginning with tag v6.. are reserved for Adldap2 v10.* The corresponding Adldap2 repository is https://github.com/Adldap2/Adldap2/tree/master

Keep this in mind if you are browsing the GitHub Repository of Adldap2

Functions of the extension

It has been a long way since 29. Jan 2014, many functions has been added. I noticed for myself that a short overview might help everyone to see whats possible.

The simple Method 1

The deep integration with Method 2

Create, modify or delete Active Directory objects with Method 3: docs/CREATE_MODIFY_DELETE_OBJECTS.md

How to start??

If you have some questions...

Installation

The preferred way to install this extension is through Composer.

Either run

or add

to the require section of your composer.json

Configuration

Add this code in your components section of the application configuration (eg. config/main.php for advanced template or config/web.php for basic template):

See official documentation for all config options.
https://adldap2.github.io/Adldap2/#/setup?id=options

Usage - Method 1, Method 2 and Method 3

Usage method 1: Simple usage without a user model

If you are need to query some informations for a user from the Active Directory this would be best way. No additional configuration is needed and the only thing to do is to add the configuration as described above to your components section.

You only use the extension in the regular Yii2 style:

Further documentation with examples: docs/USAGE_WITHOUT_USER_MODEL.md

Modify of attributes is also possible. See Method 3.


Usage method 2: Deep integration into the yii2 framework with a user model

The second method gives you the ability to authenticate users against Active Directory with a special user model. It intgerates very well into the RBAC security concept of yii2 (http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#rbac).

You can use all features of the yii2 user integration.

Some Examples:

If you use the Edvlerblog\Adldap2\model\UserDbLdap.php class.

For example imagine the following:

If you try to login with your new user, the user is created automatically in yii2 and role yii2_example_group is assigned automatically on login.
For the human this is transparent. The only feedback to the human is a successfull login and that it is possible to use the functions which he has permissions to access.

Further documentation with setup and examples: docs/USAGE_WITH_USER_MODEL.md


Usage method 3: Create, modify and delete Active Directory objects

Adldap2 offers the option to create, modify and delete Active Directory objects. See https://adldap2.github.io/Adldap2/#/models/model for documentation.

Prequesits

One example: Modify the displayname of a user

Further documentation: docs/CREATE_MODIFY_DELETE_OBJECTS.md


Testing

This section is only for developers, that may extend the functionality.

These test classes exists:

For the UserModelTest test it's neccessary to setup the deep integration as described here: docs/USAGE_WITH_USER_MODEL.md

Usage:

Start the tests in windows with:


All versions of yii2-adldap-module with dependencies

PHP Build Version
Package Version
Requires adldap2/adldap2 Version ^10.0.0
yiisoft/yii2 Version ^2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package edvlerblog/yii2-adldap-module contains the following files

Loading the files please wait ....