将sonarqube与Ldap集成

将sonarqube与Ldap集成,ldap,continuous-integration,sonarqube,integration,devops,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.bindPas

我在谷歌上搜索了很多,但是我找不到一个关于如何将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集成的块。我需要手动添加这些行吗?还是已经存在?我也尝试使用插件,但在安装后无法找到使用插件的下一步操作。

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


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

#LDAP配置#常规配置sonar.security.realm=LDAP LDAP.url=ldap://myserver.mycompany.com ldap.bindDn=my_bind\u dn ldap.bindPassword=my_bind\u password#用户配置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=sonasource,dc=com ldap.Group.request=(&(objectClass=posixGroup)(memberUid={uid}))这些ldap详细信息应该在问题正文中,而不是在评论中!请回答您的问题并将其添加到那里,这样配置实际上是可读的,并且与配置的其余部分一致。谢谢您的回答@Nicolas。但问题是我需要自己在sonar.properties中添加这些代码吗<代码>sonar.security.realm=LDAP.url=ldap://myserver.mycompany.com ldap.bindDn=my_bind\u dn ldap.bindPassword=my_bind\u password#用户配置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配置ldap.Group.baseDn=ou=Groups,dc=sonarsource,dc=com ldap.Group.request=(&(objectClass=posixGroup)(memberUid={uid}))Yes,必须在sonar.properties中设置ldap插件配置。实际属性值取决于您的LDAP部署。因为我是初学者。我需要在sonar.properties?中粘贴上面的LDAP配置?。那么我安装的sonar LDAP插件有什么用呢