Download the PHP package yetopen/yii2-usuario-ldap without Composer
On this page you can find all versions of the php package yetopen/yii2-usuario-ldap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-usuario-ldap
Yii2 Usuario LDAP
An yii2 extension to authenticate and/or syncronize users against LDAP for 2amigos/yii2-usuario.
Installation
The preferred way to install this extension is through composer.
Either run:
or add
to the require section of your composer.json
file.
Configuration
Add in your config (config/web.php
for the basic app):
adapting parameters to your setup.
Configuration options
- ldapConfig: all the parameters for connecting to LDAP server as documented in Adldap2
- createLocalUsers: if TRUE when a user successfully authenticate against the first LDAP server is created locally in Yii database. If FALSE a default users with ID specified in
defaultUserId
is used for the session - defaultRoles: if specified the role/s will be assigned to the users created by the extension. Can be set as an array. Default to FALSE
- secondLdapConfig: if specified this is used as LDAP server for sync the local users, if not specified this is equal to ldapConfig
- syncUsersToLdap: if TRUE changes to local users are synchronized to the second LDAP server. This includes creation and deletion of an user
- defaultUserId: if
createLocalUsers
is set to FALSE must contain the ID of an user to be used as local. Defaults to-1
- allowPasswordRecovery: if TRUE it will enable password recovery process, otherwise it will redirect the LDAP users to the url specified in
passwrdRecoveryRedirect
. Defaults to FALSE. - passwordRecoveryRedirect: when
allowPasswordRecovery
is set to FALSE specifies the URL where the user will be redirected when trying to recover the password. This parameter will be processed by yii\helpers\Url::to(). - logCategory: it's the log category that will be passed when the module logs something, defaults to _YII2_USUARIOLDAP
Log configuration
To log all the messages about the module in one single file, configure under targets
of log config file
All versions of yii2-usuario-ldap with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2.0.0
2amigos/yii2-usuario Version ^1.6.0
adldap2/adldap2 Version ^10.4.3
kartik-v/yii2-krajee-base Version *
2amigos/yii2-usuario Version ^1.6.0
adldap2/adldap2 Version ^10.4.3
kartik-v/yii2-krajee-base Version *
The package yetopen/yii2-usuario-ldap contains the following files
Loading the files please wait ....