Must-share information (formatted with Markdown):
- which versions are you using (SonarQube * Enterprise Edition
- Version 9.9 (build 65466)
- how is SonarQube deployed: Manual
- what are you trying to achieve - Ldap connection to my sonarqube application. I am trying to allow only users in mentioned group to access my application. But all users in AD are able to access.
- what have you tried so far to achieve this
Created sonar,properties
Ldap connection is OK
All users in domain are able to access.
Added condition to groups still all users are able to access.
Please help me with configuration such as only users in mentioned groups should be able to access sonarqube application.
Below is sonar.properties contents.
sonar.security.realm=LDAP
ldap.url=ldaps://ldap.test.com
ldap.bindDn=CN=SVC_Sonar,OU=ServiceAccounts,OU=OrgResources,DC=ad,DC=test,DC=com
ldap.bindPassword=***********
User Configuration
###############################
ldap.user.baseDn=dc=ad,dc=test,dc=com
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail
###################################
ldap.group.baseDn=OU=Manual,OU=Access-Groups,OU=OrgResources,DC=ad,DC=test,DC=com
ldap.group.request=(&(objectClass=group)(member={dn})(|(cn=sonarqube_admin)(cn=sonarqube_users)))
Synchronize AD Groups to SonarQube
ldap.group.idAttribute=sAMAccountName
ldap.group.memberAttribute=member
Automatically create users in SonarQube after authentication via AD
sonar.authenticator.createUsers=true
Force user authentication to access SonarQube
sonar.forceAuthentication=true
Assign administrative permissions to the ‘hpro-admins’ group from AD
sonar.security.adminGroups=sonarqube_admin