LDAP授权在Gerrit

时间:2015-11-09 21:25:44

标签: ldap gerrit

安装Gerrit并将其配置为在验证GUI时使用LDAP时,我遇到组授权问题。我向LDAP组提供了代码审查+2角色,但该组中的用户不能+2。实际上,用户被视为具有+1能力的普通注册用户。

以下是我的Gerrit配置:

[auth] 
type = LDAP 
gitBasicAuth = true 
[ldap] 
server = ldap://IP:Port 
username = username 
password = password 
accountBase = accountBase
groupBase = groupBase 
referral = follow accountPattern = (sAMAccountName=${username})
groupPattern = (cn=${groupname})
accountFullName = displayName
accountMemberField = member
accountEmailAddress = mail
groupMemberPattern = (&(objectClass=groupOfNames)(member=${groupname}))

以下是项目配置:

[access "refs/for/refs/*"]
push = group ldap/Group Name
submit = group ldap/Group Name
owner = group ldap/Group Name
pushMerge = group ldap/Group Name
[access "refs/heads/*"]
label-Code-Review = -2..+2 group ldap/Group Name
submit = group ldap/Group Name
push = group ldap/Group Name
owner = group ldap/Group Name
forgeAuthor = group ldap/Group Name

0 个答案:

没有答案