How to integrate Active Directory with SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Am using 8.9 LTS community edition.
  • what are you trying to achieve
    Am trying to integrate Active Directory with SonarQube
  • what have you tried so far to achieve this

I have provided below active directory details… but sonarqube Web is not launching and getting an error.

# Enable the LDAP feature

sonar.security.realm=ActiveDirectory

# Set to true when connecting to a LDAP server using a case-insensitive setup.

 sonar.authenticator.downcase=true

# URL of the LDAP server. Note that if you are using ldaps, then you should install the server certificate into the Java truststore.

ldap.url=Active Directory Server URL

# Bind DN is the username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory (optional)

ldap.bindDn=cn=sonar,ou=users,o=mycompany

# Bind Password is the password of the user to connect with. Leave this blank for anonymous access to the LDAP directory (optional)

ldap.bindPassword=xxxxxxx

# Possible values: simple | CRAM-MD5 | DIGEST-MD5 | GSSAPI See http://java.sun.com/products/jndi/tutorial/ldap/security/auth.html (default: simple)

 ldap.authentication=simple

Hi,

What’s the error?

 
Ann