authenticationactive-directorysonarqubeldapldapauth

Sonarqube group and LDAP group sync


above one is for bind this is working fine.

ldap.user.baseDn=cn=Users,dc=CompanyName,dc=in

ldap.user.request=(&(objectClass=user)(sAMAccountName={login})(|(memberOf=cn=Sonarusers,cn=Users,dc=companyName,dc=in)(memberOf=cn=SonarAdmin,cn=Users,dc=companyName,dc=in)))

ldap.user.realNameAttribute=cn

ldap.user.emailAttribute=mail

User access is also working fine giving access only to those groups.

ldap.group.baseDn=CN=Users,DC=companyName,DC=in

ldap.group.request=(&(objectClass=posixGroup)(member={uid}))

ldap.group.idAttribute=sAMAccountName

This is group access

for this I am not able to configure things.

I have 2 groups in LDAP sonarUsers and sonarAdmin and created same group in Sonarqube and give permission for sonarAdmin.

please help me to sync the groups.

Thanks in Advance


Solution

  • I found the solution. the mistake was from filter i was using wrong object class