I have manged installing Gerrit and configuring it to use LDAP while authenticating GUI. I also manged using the LDAP accounts while pushing new code to Gerrit. Right now I the following issues:
1) I can't search for LDAP users or groups while adding reviewers.
2) I can't add a reviewer from LDAP users or groups.
3) LDAP group don't have the ability to give +2 on code review.
4) LDAP group don't have the ability submit.
5) 1+1 doesn't lead to +2 if the +1s are granted by LDAP users.
Here are my Gerrit configs:
[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}))
Here are the project configuration:
[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