Ldap member not added to group automatically

we have lot of configuration for countries.
For example
ldap.vn.url=ldaps://domain.com
ldap.vn.windows.auth=true
ldap.vn.bindDn= ***
ldap.vn.bindPassword= ***
ldap.vn.user.baseDn= ***
ldap.vn.user.request=(mail={0})
ldap.vn.user.realNameAttribute=sAMAccountName
ldap.vn.user.emailAttribute=mail
ldap.vn.group.baseDn= ***
ldap.vn.group.request=(&(objectClass=group)(member={dn}))
ldap.vn.group.idAttribute=sAMAccountName

we create a sonarqube group with same name as it in the active directory.

We can add the user to the domain group , but when the user login to sonar.
We check that domain group. The user will not in the group.

Hi,

Welcome to the community!

Can you check $SONARQUBE-HOME/logs/web.log and verify what LDAP is returning for the user? Also, does the casing of the group names match from LDAP to SonarQube?

 
Ann

P.S. You’ll need to bump logging up to DEBUG to see the groups that are returned. And you’ll only want to do that briefly since DEBUG logging can be verbose!

Hi Ann,
Thanks for the reply, the issue was resolved.
we defined lots of ldap.vn.group.baseDn for every country. After I update the group.baseDn to keep only one baseDn. Everytime the user login to sonarqube. The user will auto join the group now.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.