Other, Synology

Kanboard 集成 Microsoft Active Directory 认证

2020年4月8日

1.启用ldaps模式

2.修改Kanboard配置Conifg.php配置文件

//////////Microsoft Active Directory 认证模式 //////////
define('LDAP_SERVER', 'ldaps://xxx.com');
define('LDAP_USERNAME_CASE_SENSITIVE', false);
define('LDAP_BIND_TYPE', 'user');
define('LDAP_USERNAME', '%[email protected]');
define('LDAP_PASSWORD', null);
define('LDAP_USER_BASE_DN', 'cn=users,dc=xxx,dc=com');
define('LDAP_USER_FILTER', '(&(objectClass=user)(sAMAccountName=%s))');
define('LDAP_USER_ATTRIBUTE_USERNAME', 'samaccountname');
define('LDAP_USER_ATTRIBUTE_FULLNAME', 'displayname');
define('LDAP_USER_ATTRIBUTE_EMAIL', 'mail');
define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof');
define('LDAP_USER_CREATION', true);
define('LDAP_USER_ATTRIBUTE_USERNAME', 'samaccountname');
///////////////////////////////////////////////////////

注意:把原 Conifg.php配置文件里面有关LDAP的配置信息都删除或注释掉.

You Might Also Like

No Comments

Leave a Reply

%d 博主赞过: