Gerrit 的 LDAP 配置?
LDAP configuration for Gerrit?
由于 google 已停止对 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 的新手,请有人帮助我。
谢谢!!
在工作中,我是 运行 一个使用我们的工作 LDAP 进行身份验证的 gerrit 实例。我使用这样的配置:
[ldap]
server = ldap://xxx.OurDomain.com
username = CN=ldapread,DC=OurDomain,DC=com
password = NotShownHere
accountBase = DC=OurDomain,DC=com
groupBase = DC=OurDomain,DC=com
关键是您需要一个允许从 LDAP 读取并将该用户的坐标放入配置中的 LDAP 用户。
在我们的例子中,我从已知可用的 Apache httpd 配置文件中获取了这些坐标。在您的情况下,您可能需要向您的 LDAP 管理员询问合适的凭据。
由于 google 已停止对 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 的新手,请有人帮助我。
谢谢!!
在工作中,我是 运行 一个使用我们的工作 LDAP 进行身份验证的 gerrit 实例。我使用这样的配置:
[ldap]
server = ldap://xxx.OurDomain.com
username = CN=ldapread,DC=OurDomain,DC=com
password = NotShownHere
accountBase = DC=OurDomain,DC=com
groupBase = DC=OurDomain,DC=com
关键是您需要一个允许从 LDAP 读取并将该用户的坐标放入配置中的 LDAP 用户。
在我们的例子中,我从已知可用的 Apache httpd 配置文件中获取了这些坐标。在您的情况下,您可能需要向您的 LDAP 管理员询问合适的凭据。