将 sonarqube 与 Ldap 集成
Integrating sonarqube with Ldap
我 google 很多,但我找不到如何将 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 集成的块。我需要手动添加这些行还是已经存在了?我也尝试过使用插件,但安装后找不到使用插件的后续步骤。
LDAP 相关属性不在 SonarQube 内置 sonar.properties 配置文件中,因为开箱即用的 SonarQube 没有 LDAP 功能。
请记住,SonarQube 具有基于插件的架构。 LDAP 功能随 LDAP Plugin 一起提供。该文档页面详细介绍了各种配置属性以及一些示例。
我 google 很多,但我找不到如何将 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 集成的块。我需要手动添加这些行还是已经存在了?我也尝试过使用插件,但安装后找不到使用插件的后续步骤。
LDAP 相关属性不在 SonarQube 内置 sonar.properties 配置文件中,因为开箱即用的 SonarQube 没有 LDAP 功能。
请记住,SonarQube 具有基于插件的架构。 LDAP 功能随 LDAP Plugin 一起提供。该文档页面详细介绍了各种配置属性以及一些示例。