Package Data | |
---|---|
Maintainer Username: | ken8203 |
Maintainer Contact: | ken8203@gmail.com (kcchung) |
Package Create Date: | 2015-07-19 |
Package Last Update: | 2018-05-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-25 15:23:19 |
Package Statistics | |
---|---|
Total Downloads: | 308 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 8 |
Total Watchers: | 1 |
Total Forks: | 4 |
Total Open Issues: | 0 |
An OpenLDAP authentication driver for Laravel 5.
Add to composer.json
and install with composer install
/ composer update
.
{
require: {
"kcchung/l5-openldap-auth": "dev-master"
}
}
Open your config/app.php
file and add the service provider to the providers array.
kcchung\L5OpenldapAuth\LdapAuthServiceProvider::class
Update your config/auth.php
to use ldap
driver.
'driver' => 'ldap'
Manually create a config/ldap.php
file and add the following:
<?php
return [
'host' => 'ldaps://example.com',
'rdn' => 'ou=System,dc=example,dc=com', // rdn used by the user configured below, optional
'version' => '3', // LDAP protocol version (2 or 3)
'basedn' => 'ou=People,dc=example,dc=com', // basedn for users
'login_attribute' => 'uid', // login attributes for users
];
?>
If you wish to add your own functions, just modify any of the classes.
Created by Kuan-Chien Chung(kcchung)