Is it possible to integrate sonarqube with LDAP

0 votes

I want to integrate LDAP and sonarqube. Most of the places I've searched asked me to change sonarqube configuration in the sonar.properties file. These are the changes required according to them.

# LDAP configuration 
# General Configuration 
sonar.security.realm=LDAP 
ldap.url=ldap://myserver.mycompany.com 
ldap.bindDn=my_bind_dn 
ldap.bindPassword=my_bind_password 

# User Configuration 
ldap.user.baseDn=ou=Users,dc=mycompany,dc=com 
ldap.user.request=(&(objectClass=inetOrgPerson)(uid={login})‌​)
ldap.user.realNameAttribute=cn ldap.user.emailAttribute=mail 

# Group Configuration 
ldap.group.baseDn=ou=Groups,dc=sonarsource,dc=com 
ldap.group.request=(&(objectClass=posixGroup)(memberUid={uid‌​}))

But there is no code block such as this in my sonar.properties file. Should I add these myself? I even tried using the plugin but couldn't use it after installation.

Apr 24, 2018 in DevOps & Agile by shubham
• 6,480 points
672 views

4 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Sonarqube has no default support for sonarqube. The same reason you couldn't find the ldap config block of code in you sonar.properties file.

Sonarqube has a plugin based architecture and hence, the ldap is required for ldap functionality to come. Click here for more information

answered Apr 24, 2018 by ajs3033
• 7,000 points
0 votes

Hey, Follow these steps:

  • Configure the LDAP plugin by editing $SONARQUBE-HOME/conf/sonar.properties
  • Restart the SonarQube server and check the log file for:
INFO org.sonar.INFO Security realm: LDAP ...
INFO o.s.p.l.LdapContextFactory Test LDAP connection: OK
  • Log into SonarQube
  • On log out, you'll be presented a login page (/sessions/login), where they can choose to log in as a technical user or a domain user by passing appropriate credentials
answered Apr 29 by Olly
0 votes

You can configure SonarQube authentication and authorization by configuring the SONARQUBE-HOME/conf/sonar.properties file. It's main features are:

  • Password checking against the external authentication engine.
  • Automatic synchronization of usernames and emails.
  • Automatic synchronization of relationships between users and groups
  • You can authenticate against both the external and the internal authentication systems.
answered Apr 29 by Pavan
0 votes

Add the following lines in your config file

# LDAP

sonar.security.realm=ACTIVE_DIRECTORY
sonar.authenticator.downcase=true
answered Apr 29 by Wazir
This used to work for me but then I updated the SonarQube version and the plugin stopped working.
Which version did you upgrade it to?
From 5.6 to 6.0

Yeah so this plugin will not work for this version. Also, the SSO will not work no matter which plugin you use. 

Have a look at this blog for more information.

Related Questions In DevOps & Agile

0 votes
1 answer

is it possible to use swagger with vs2017

Yes, you can use swagger in a ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,520 points
20 views
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,100 points
415 views
0 votes
1 answer

Is it possible to access Couchbase by terminal?

What you want to accomplish isn't possible ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,520 points
30 views
0 votes
1 answer

Is it possible to preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 19, 2018 in DevOps & Agile by Atul
• 10,200 points
18 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
631 views
+13 votes
2 answers
0 votes
1 answer

Is it possible to to create IIS Site and application Pool using Web Deploy

You can try and use the ServerManager ...READ MORE

answered Apr 20, 2018 in DevOps & Agile by ajs3033
• 7,000 points
162 views
+1 vote
2 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.