User in SonarQube can be validated against ActiveDirectory, once the user is validated it will be automatically created which is useful if there are a lot users who are required to use the tool.
- LDAP plugin needs to be installed in SonarQube marketplace
- sonar.properties needs to be updated with LDAP configuration details
- SonarQube service needs to be restarted.
- Go to SonarQube web.
- If there are issues with the configuration check the logs (SonarQube\logs\web.log)
# LDAP configuration # General Configuration sonar.security.realm=LDAP sonar.authenticator.createUsers=true ldap.url=ldap://ldapserver:389 ldap.bindDn=CN=username,CN=Users,DC=domain,DC=company,DC=com ldap.bindPassword=password # User Configuration ldap.user.baseDn=DC=domain,DC=company,DC=com ldap.user.request=(&(objectClass=user)(sAMAccountName={login})) ldap.user.realNameAttribute=cn ldap.user.emailAttribute=mail
ADExplorer is useful to confirm AD object properties and validate the server address and credentials.
In case it is not clear what are AD server details then use guidance on SO.
More details can be found in SonarQube LDAP plugin documentation.
No comments:
Post a Comment