maximilianoraul / yii2-openldap-user
Enable the use of OpenLDAP to authenticate users
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
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, ], //...