将sonarqube与Ldap集成

时间:2017-03-14 02:14:40

标签: ldap continuous-integration sonarqube integration devops

我谷歌很多,但我找不到如何将LDAP与sonarqube集成的答案。大多数文档显示我们需要在/sonarqube-6.2/conf/sonar.properties中进行修改,如下所示;

# 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‌​}))

但问题是我可以在sonar.properties中找到任何与LDAP集成的块。我需要手动添加这些行还是已经存在?我也试过插件,但在安装后我找不到使用插件的后续步骤。

1 个答案:

答案 0 :(得分:1)

与IBM相关的属性不在SonarQube内置的 sonar.properties 配置文件中,因为开箱即用的SonarQube没有LDAP功能。

请记住,SonarQube有一个基于插件的架构。 LDAP Plugin附带LDAP功能。该文档页面详细介绍了各种配置属性以及一些示例。