Yes that part works, I get the groups from ldap (see ldap-groups.png for a X project), but groups are not associated to users! so users can't do anything with the project
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Which version of Gerrit are you running?
Have you actually tried if the assigned has an effect on the users permissions?
On Thursday, March 28, 2013 3:43:26 PM UTC+1, Edwin Kempin wrote:Which version of Gerrit are you running?
Indeed, Im using the stable version 2.5.2. That explain the showing partHave you actually tried if the assigned has an effect on the users permissions?What do you mean with assigned? Do you mean that for instance John Smith belongs to General developers (in ldap), General developers can administrate project A (set in gerrit web ui). When I login as John Smith I can't see the group General developers listing under Settings->Groups (settings.png), and I cant also even see the project A
@alex I dont have any settings for cache, I think default is disabled unless you specify something as per: http://gerrit.googlecode.com/svn/documentation/2.1/config-gerrit.html#cacheAgain, the problem is that users dont retrieve the groups they belong to. I still think it is a problem with my configuration
--
Hi guys,after 3 days struggling with gerrit and ldap integration, struggling here and there, the documentation is missing in this sense from my opinion. I expect to have some aspects working and they are:
1 - Users are able authenticate in Gerrit with ldap credentials. NAme and mail from users are retrieved from ldap (work!)
2 - Gerrit to able to retrieve ldap groups, and assign them to projects (work!)
3 - Users belonging to a groups in ldap, belonging to the same mapped group in gerrit (doesn't work). When I log onto Gerrit and go to Settings, the user jsmith belongs only to Anonymous Users and Registered Users. This user can't see any project belonging to the ldap groups global administrators, or global developersThis last point has to work! I am pretty sure I am missing something, my configuration:
LDAP: (I am omitting sone par of the leif of course, including only relevant parts)
dn: ou=gerrit,dc=company,dc=com
ou: Gerrit
objectClass: organizationalUnit
description: Gerrit OU for gerrit groups and permissions
dn: cn=global administrators,ou=gerrit,dc=company,dc=com
cn: Global aministrators
objectClass: groupOfNames
description: Gerrit groups for global administrators
member: cn=John Smith,ou=inhouse,ou=employees,dc=company,dc=com
dn: cn=global developers,ou=gerrit,dc=company,dc=com
cn: Global developers
objectClass: groupOfNames
description: Gerrit groups for global developers
member: cn=John Smith,ou=inhouse,ou=employees,dc=company,dc=com
dn: cn=John Smith,ou=inhouse,ou=employees,dc=company,dc=com
objectClass: posixAccount
objectClass: inetOrgPerson
objectClass: shadowAccount
cn: John Smith
sn: Smith
uid: jsmith
gidNumber: 5001
uidNumber: 10000
userPassword: password
gecos: John Smith
mail: jsm...@company.com
homeDirectory: /var/null
GERRIT:
[gerrit]
basePath = git
canonicalWebUrl = http://www.gerrit.local:8080/
[database]
type = mysql
hostname = localhost
database = gerrit
username = gerrit
password = gerrit
[auth]
type = LDAP
[ldap]
server = ldap://xx.xx.xx.xx
accountBase = ou=inhouse,ou=employees,dc=company,dc=com
groupBase = ou=gerrit,dc=company,dc=com
username = cn=admin,dc=company,dc=com
password = pass123
accountFullName = gecos
accountEmailAddress = mail
groupPattern = (&(objectClass=groupOfNames)(cn=${groupname}))
groupMemberPattern = (member=${dn})
[sendemail]
smtpServer = localhost
[container]
user = gerrit
javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
[sshd]
listenAddress = *:24004
[httpd]
listenUrl = http://*:8080/
What am I missing? Thanx!
I am trying to configure LDAP with gerrit Version – 2.10.2, But getting below errors, Kindly help me on this,
My gerrit.config settings are follows,
[auth]
type = LDAP
[ldap]
accountBase = ou=people,dc=sisldomain,dc=com
accountPattern = (&(objectClass=person)(uid=${username}))
accountFullName = displayName
Gerrit error.log as follows,
[2015-04-07 16:06:38,385] ERROR com.google.gerrit.server.auth.ldap.LdapRealm : Cannot query LDAP to authenticate userjavax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090728, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580]; remaining name 'ou=people,dc=sisldomain,dc=com'
[auth] type = HTTP_LDAP[ldap] server = ldap://ldap.company.lab referral = follow sslVerify = false username = cn=admin,dc=ci,dc=company,dc=lab password = password
accountPattern = (&(objectClass=inetOrgPerson)(mail=${username}))
accountBase = ou=People,dc=ci,dc=company,dc=lab groupBase = ou=Groups,dc=ci,dc=company,dc=lab
groupPattern = (cn=${groupname}) groupMemberPattern = (&(objectClass=groupOfNames)(member=${dn}))
hi i have same situation now and i am unable to mov forward please tell what will be workflow of ldap groups1- is it necasssary to include ldap gropus in gerrit groups.
2- or ldap groups are independent in gerrit
3- what should be done in ldap?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.