maximilianoraul / yii2-openldap-user
Enable the use of OpenLDAP to authenticate users
Package info
github.com/maximilianoraul/yii2-openldap-user
Type:yii2-extension
pkg:composer/maximilianoraul/yii2-openldap-user
0.0.4
2021-09-27 16:25 UTC
Requires
- yiisoft/yii2: ~2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Enable the use of OpenLDAP to authenticate users
Installation
The preferred way to install this extension is through composer.
Either run
composer require maximilianoraul/yii2-openldap-user "*"
or add
"maximilianoraul/yii2-openldap-user": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by:
Add in your config (config/web.php for the basic app):
'components' => [ //... 'user' => [ 'identityClass' => 'MaximilianoRaul\OpenLdap\model\User', ], //... 'openldap' => [ 'class' => 'MaximilianoRaul\OpenLdap\Openldap', 'host' => "ldap.example.int", 'protocol' => "ldap", 'port' => 389, 'baseDn' => "dc=example,dc=int", 'ldapVersion' => 3, ], //...