禅道开源版添加openldap认证

发表于:2015-6-25 11:16

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:xiaowei1128    来源:51Testing软件测试网采编

#
禅道
分享:
  注:现在添加的认证只是基于ldap密码验证,需要在禅道系统里面有对应的用户名,否则登陆不成功。
  基于http://www.zentao.net/extension-viewext-25.html提供的插件修改。
  管理员登陆禅道后台—》扩展—》添加ldap插件
  修改插件里面ldapserver验证文件。
module/user/ext/config/ldap.php
$config->ldap->ldap_server                      =  'ldap://ldap.example.com:389/';
/**
* The LDAP Protocol Version, if 0, then the  protocol version is not set.  For  Active Directory use version 3.
*/
$config->ldap->ldap_protocol_version             = 3;
/**
* Determines whether the LDAP library  automatically follows referrals returned by LDAP servers or not.
* This maps to LDAP_OPT_REFERRALS ldap library  option.  For Active Directory, this  should be set to OFF.
*/
$config->ldap->ldap_follow_referrals              = 1;        //1 ON, 0 OFF
$config->ldap->ldap_root_dn                    =  'ou=www,dc=abc,dc=com';
$config->ldap->ldap_uid_field                   = 'uid';                         //修改为uid or cn, Use  'sAMAccountName' for Active Directory
$config->ldap->ldap_bind_dn                    =  'CN=admin,OU=admin,DC=abc,DC=com';
$config->ldap->ldap_bind_passwd                    = 'abcdef';
/**
这一行需要注释掉
* Search filter for acitve person  only, !(userAccountControl:1.2.840.113556.1.4.803:=2) means active user in AD
*/
#$config->ldap->ldap_organization               =  '(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))';
  3.  这样就可以在禅道里面使用ldap用户密码登陆
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号