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 file. These are the changes required according to them.

# LDAP configuration 
# General Configuration 

# User Configuration 
ldap.user.realNameAttribute=cn ldap.user.emailAttribute=mail 

# Group Configuration,dc=sonarsource,dc=com{uid‌​}))

But there is no code block such as this in my 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
• 7,340 points

4 answers to this question.

0 votes

Sonarqube has no default support for sonarqube. The same reason you couldn't find the ldap config block of code in you 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,300 points
0 votes

Hey, Follow these steps:

  • Configure the LDAP plugin by editing $SONARQUBE-HOME/conf/
  • 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, 2019 by Olly
0 votes

You can configure SonarQube authentication and authorization by configuring the SONARQUBE-HOME/conf/ 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, 2019 by Pavan
0 votes

Add the following lines in your config file

answered Apr 29, 2019 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,890 points
+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,220 points
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,890 points
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,240 points
+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
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
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,300 points
+1 vote
2 answers
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP