您的位置:軟件測試 > 軟件項目管理 > 項目管理軟件 > 禪道項目管理軟件
禪道開源版添加openldap認(rèn)證
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時間:[ 2015/6/25 15:29:24 ] 推薦標(biāo)簽:項目管理工具 禪道

  注:現(xiàn)在添加的認(rèn)證只是基于ldap密碼驗證,需要在禪道系統(tǒng)里面有對應(yīng)的用戶名,否則登陸不成功。
  基于http://www.zentao.net/extension-viewext-25.html提供的插件修改。
  管理員登陸禪道后臺—》擴(kuò)展—》添加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用戶密碼登陸

軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd