I am having difficulties to find the correct configuration so that group membership will be synchronized from LDAP--
I had this in my config, and it doesn't work, although authentication is succesful:sonar.security.realm=LDAP
sonar.security.savePassword=true
# Configure servers
ldap.url=ldap://hkdc.hk.myOrgName.com
ldap.user.baseDn=cn=Users,dc=hk,dc=myOrgName,dc=com
ldap.user.request=(&(objectClass=user)(uid={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail
ldap.group.baseDn=cn=Users,dc=hk,dc=myOrgName,dc=com
ldap.group.request=(&(objectClass=group)(memberUid={member}))
the error message is:2017.03.01 11:37:21 DEBUG web[AVqH8EcvRVkAXn6NAAAE][o.s.p.l.LdapContextFactory] Initializing LDAP context {java.naming.provider.url=ldap://dc01.hk.myOrgName.com, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, com.sun.jndi.ldap.connect.pool=true, java.naming.security.authentication=simple, java.naming.referral=follow}
2017.03.01 11:37:21 DEBUG web[AVqH8EcvRVkAXn6NAAAE][o.s.s.u.NewUserNotifier] User created: teleung. Notifying NewUserHandler handlers...
2017.03.01 11:37:21 DEBUG web[AVqH8EcvRVkAXn6NAAAE][o.s.s.a.UserIdentityAuthenticator] List of groups returned by the identity provider '[]'
It seems no matter what I tried, the identity provider always return an empty list. However when I do a ldapsearch, I can get a list of groups
ldapsearch -x "uid=teleung" memberOf
# extended LDIF
#
# LDAPv3
# base <DC=hk,DC=myOrgName,DC=com> (default) with scope subtree
# filter: uid=teleung
# requesting: memberOf
#
# Terry Leung, Users, hk.myOrgName
dn: CN=Terry Leung,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=Developers,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=QA,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=Bamboo Admin,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=DevOps,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=devops-admin,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=jira-users,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=jira-administrators,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=confluence-administrators,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=bamboo-administrators,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=bitbucket-administrators,CN=Users,DC=hk,DC=myOrgName,DC=com
memberOf: CN=sonar-administrators,CN=Users,DC=hk,DC=myOrgName,DC=com
How do I go about troubleshooting the config of LDAP Group in Sonar and any pointer what is the correct config to use ? -Thanks.
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ab5eb70a-4fc3-4d27-be67-9e552a0af6b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
LDAP 2.1.0.507 |
even though the groups defined in SonarQube match an ldapsearch of the same.