[英]Gerrit LDAP configuration
我正在嘗試將gerrit配置為用戶LDAP,但我遇到了一些問題。
我有以下內容:
LDAP配置:
dc=test,dc=com
cn=admin
- cn=admins
- cn=username
ou=MyTeam
-cn=developers
-cn=myusername
我配置了gerrit來使用它:
[ldap]
server = ldap://localhost
username = myusername
accountBase = ou=MyTeam,dc=test,dc=com
groupBase = ou=MyTeam,dc=test,dc=com`
和gerrit不允許我使用以下錯誤登錄
ERROR com.google.gerrit.server.auth.ldap.LdapRealm : Cannot query LDAP to authenticate user javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]
有人可以解釋一下如何正確設置嗎?
這就是我的配置。 用戶名必須是允許在ldap中搜索的用戶。 也許您需要使用完全限定的名稱。 對不起,我的LDAP也不是那么強大,我也很難讓它工作但是這個配置有效......
[ldap]
server = ldap://ldap
username = cn=notadmin,dc=myteam,dc=test,dc=com
accountBase = ou=users,dc=myteam,dc=test,dc=com
groupBase = ou=gerrit,ou=groups,dc=myteam,dc=test,dc=com
groupMemberPattern = (member=${dn})
accountFullName = cn
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.