alex-rad/laravel-ldap-credentials
最新稳定版本:v1.0.1
Composer 安装命令:
composer require alex-rad/laravel-ldap-credentials
包简介
Extends Database and Eloquent User Authentication Providers (Laravel framework) to validate credentials (email and password) in LDAP
README 文档
README
Extends Database and Eloquent User Authentication Drivers (Laravel framework) to validate credentials (email and password) in LDAP.
Password field should be removed from Users table and model.
It does not support to reset password by email and new user registration.
Installation
-
Run
composer require "alex-rad/laravel-ldap-credentials"to install package. -
Add LdapCredentials Service Provider to the
config/app.phpconfiguration file.'providers' => [ ... LdapCredentials\Auth\AuthServiceProvider::class, ... ],
-
Add LDAP settings to the
config/auth.phpconfiguration file./* |-------------------------------------------------------------------------- | LDAP Settings |-------------------------------------------------------------------------- | | For "databaseLdapCredentials" or "eloquentLdapCredentials" user | authentication drivers. | */ 'ldap' => [ 'host' => env('LDAP_HOST', 'ldap.server.com'), 'port' => env('LDAP_PORT', 389), 'user' => env('LDAP_USER', NULL), 'password' => env('LDAP_PASSWORD', NULL), 'base' => env('LDAP_BASE', ''), ],
-
Add LDAP settings to the environment
.ENVconfiguration file (optional).LDAP_HOST=ldap.company.com -
Switch User Authentication Driver to
databaseLdapCredentialsoreloquentLdapCredentialsdriver inconfig/auth.phpconfiguration file.'driver' => 'eloquentLdapCredentials',
or
'driver' => 'databaseLdapCredentials',
-
Remove reset password by email and new user registration functions from application.
统计信息
- 总下载量: 354
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-28