Review board自己已经支持ldap登陆,咱们须要作的就是一些安装、配置工做。首先review board须要python-ldap,若是没有安装,咱们在打开ldap配置页面,就会提醒LDAP authentication requires the python-ldap library, which is not installed.。python
python-ldap下载地址https://pypi.python.org/pypi/python-ldap/,下载完成后,安装。或者直接使用yum、apt-get安装。服务器
安装完毕后,能够在review board admin控制台进行ldap配置,若是是本机搭建,那地址应该是http://localhost/admin/settings/authentication/。dom
Authentication Method 这个固然选择LDAPui
LDAP Server,这个填写ldap服务器的地址,格式ldap://yourdomain.com:389spa
LDAP Base DN,这里填写dn信息,格式OU=yourdomain,DC=yourserver,DC=com,若是不知道,须要找ldap管理员获取。orm
Given Name,这个须要根据ldap服务器信息填写,通常是givenNameserver
Surname Attribute,通常是snget
Full Name Attribute,通常是cnit
Email Domain填写邮箱后缀,如baidu.com,sina.com.cn等io
E-Mail LDAP Attribute,通常填写mail