由于谷歌已经停止了对gerrit的openID支持,我现在正尝试使用LDAP。我有LDAP服务器的IP和端口号。但我现在不知道如何开始。
我还需要帮助来更新我的etc / gerrit_config文件:
[auth]
type = ldap
[ldap]
server = ldap://[IP]
accountBase = ou=people,dc=domain,dc=com
groupBase = ou=groups,dc=domain,dc=com
referral = follow
accountPattern = (uid=${username})
groupPattern = (cn=${groupname})
accountFullName = cn
accountMemberField = memberOf
accountEmailAddress = mail
由于我是ldap的新手,有人可以帮助我。
谢谢!
答案 0 :(得分:1)
在工作中,我正在运行一个使用我们的工作LDAP之一进行身份验证的gerrit实例。我使用这样的配置:
OR
关键是你需要一个允许从LDAP读取的LDAP用户,并将该用户的坐标放入配置中。
在我们的例子中,我从知道工作的Apache httpd配置文件中获取了这些坐标。在您的情况下,您可能需要向LDAP管理员询问合适的凭据。