zentao

https://github.com/idoop/zentao

https://github.com/iboxpay/ldap

下载iboxpay/ldap 扩展, 作为插件安装。此插件会安装三个文件

/opt/zentao/lib/ldap/ldap.class.php

# ldap 配置
/opt/zentao/module/user/ext/config/ldap.php
  
/opt/zentao/module/user/ext/model/ldap.php

参照 https://blog.csdn.net/BigBoySunshine/article/details/80502068

修改

/opt/zentao/module/user/ext/config/ldap.php

1
2
3
4
5
6
7
8
9
  
$config->ldap->ldap_server
  
$config->ldap->ldap_root_dn
  
$config->ldap->ldap_bind_dn
  
$config->ldap->ldap_bind_passwd
  

/opt/zentao/lib/ldap/ldap.class.php

1
2
3
   
if ( @ldap_bind( $t_ds, "{$t_info[$i]['dn']}", $p_password ) ) {
  

/opt/zentao/module/user/js/login.js

1
2
3
    
if(password.length != 32 && typeof(md5) == 'function') $('input:password').val(password);
  

禅道 docker + ldap插件

checkout https://github.com/idoop/zentao

修改docker-compose.yaml

修改MySQL端口

修改volumns路径

download ldap as zip https://github.com/iboxpay/ldap

参照https://github.com/iboxpay/ldap 的readme安装插件