lucacalcaterra / wn-ldap-plugin
Winter CMS 的 Ldap Active Directory 认证插件
1.2
2023-05-31 21:54 UTC
Requires
- php: >=7.3
- composer/installers: ~1.0
- directorytree/ldaprecord-laravel: ~2.7
README
Winter CMS Ldap Active Directory Auth 插件
此插件为 Winter CMS 提供 LDAP - Active Directory 认证。
使用方法
要安装此插件
- 运行: composer require lucacalcaterra/wn-ldap-plugin (--with-all-dependencies 如果存在依赖问题) 并转到第 3 步,或者
- 下载并解压此存档到 /plugins/lucacalcaterra/ldapauth
- 返回网站根目录并运行: composer update
- 运行: php artisan plugin:refresh LucaCalcaterra.LdapAuth
- 转到后台并填写 Ldap 设置(通常是主机、用户名和密码,如果使用的 ldap 属性是 samAccountname,其他参数应该都可以)并保存
- 现在您可以使用您的 ldap 属性(例如,samAccountname)作为登录名和密码进行登录
请随时提交 PR 或打开新问题。
作者
Luca Calcaterra - 2022
用于 LDAP 认证的第三方库
LdapRecord: https://github.com/DirectoryTree/LdapRecord-Laravel
感谢
@khoatd 提供起点: https://github.com/khoatran/october-ldap