Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonarQube Crowd template, trouble setting realm. #16

Open
ekranium opened this issue Oct 24, 2021 · 2 comments
Open

SonarQube Crowd template, trouble setting realm. #16

ekranium opened this issue Oct 24, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ekranium
Copy link

ekranium commented Oct 24, 2021

The templates/sonar.properties.epp in the Crowd section it should probably say something like:
sonar.security.realm=Crowd

Also I don't see a way to set sonar.security.localUsers='admin,sonar' either.

Is there a way to add custom lines to the sonar.properties file?

@ekranium ekranium changed the title SonarQube Crowd template, should have sonar.security.realm=Crowd SonarQube Crowd template, trouble setting realm. Oct 24, 2021
@fraenki
Copy link
Member

fraenki commented Oct 27, 2021

The templates/sonar.properties.epp in the Crowd section it should probably say something like

Could you please provide a working example for the whole Crowd section? I don't have a Crowd server available, so I must rely on user contributions. :)

Also I don't see a way to set sonar.security.localUsers='admin,sonar' either.

This is already supported when using LDAP. I'll add it for the Crowd section once I've received a working example.

@fraenki fraenki self-assigned this Oct 27, 2021
@fraenki fraenki added the enhancement New feature or request label Oct 27, 2021
@ekranium
Copy link
Author

ekranium commented Oct 28, 2021

Hello,

This is my working Crowd config, with hostname and password replaced:

sonar.authenticator.class: org.sonar.plugins.crowd.CrowdAuthenticator
sonar.authenticator.createUsers: true
crowd.url: https://<HOSTNAME>/crowd/
crowd.application: sonar
crowd.password: <PASSWORD>
sonar.security.realm=Crowd
sonar.security.localUsers=admin,sonar

The two bottom lines is the problem, they will be overwritten if I run puppet and must be added manually afterwards. Two ways to solve this, either accomodate using custom config (maybe do that anyway?) - the other is copy-paste from the LDAP config, and replace LDAP with Crowd (capital C!) and add the localUsers variable.

Example config can also be found here: https://github.com/deepy/sonar-crowd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants