Review board整合ldap

Review board是个免费的code review平台,安装简单,功能强大,支持svn、git,并且它支持多种认证方式。
Review board已经支持ldap登录,我们需要做的就是一些安装、配置工作。首先review board需要python-ldap,如果没有安装,我们在打开ldap配置页面,就会提醒LDAP authentication requires the python-ldap library, which is not installed.

python-ldap下载地址https://pypi.python.org/pypi/python-ldap/,下载完成后,安装。或者直接使用yum、apt-get安装。

安装完毕后,可以在review board admin控制台进行ldap配置,如果是本机搭建,那地址应该是http://localhost/admin/settings/authentication/

  • Authentication Method 这个当然选择LDAP
  • LDAP Server,这个填写ldap服务器的地址,格式ldap://yourdomain.com:389
  • LDAP Base DN,这里填写dn信息,格式OU=yourdomain,DC=yourserver,DC=com,如果不知道,需要找ldap管理员获取。
  • Given Name,这个需要根据ldap服务器信息填写,一般是givenName
  • Surname Attribute,一般是sn
  • Full Name Attribute,一般是cn
  • Email Domain填写邮箱后缀,如baidu.com,sina.com.cn等
  • E-Mail LDAP Attribute,一般填写mail
  • User Mask,一般是sAMAccountName=%s
  • Anonymous User Mask,这个是获取ldap需要的username,找管理员获取。
  • Anomymous User Password,这个是获取ldap需要的password,找管理员获取。

保存,再登录前台就会发现,注册的链接消息,使用ldap中的用户名,密码登录即可。

推荐一个ldap浏览的软件LDAPBrowser

版权声明

本站文章、图片、视频等(除转载外),均采用知识共享署名 4.0 国际许可协议(CC BY-NC-SA 4.0),转载请注明出处、非商业性使用、并且以相同协议共享。

© 空空博客,本文链接:https://www.yeetrack.com/?p=934