声纳和 LDAP。无法登录

Sonar and LDAP. Unable do login

我正在尝试将声纳配置为使用 LDAP 登录但没有成功。

Here is my sonar.properties

sonar.security.realm=LDAP
sonar.authenticator.createUsers=true
sonar.security.updateUserAttributes=true
ldap.url=ldap://ad01.mydomain.com:389
ldap.baseDn=dc=mydomain,dc=br
ldap.bindDn=CN=Test User,OU=User,OU=!State,OU=!RJ,DC=mydomaind,DC=com
ldap.bindPassword=some.pass
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.baseDn=OU=User,OU=!State,OU=!RJ,DC=mydomain,DC=com
ldap.realm=mydomain.com
ldap.loginAttribute=mail

我将 de 日志级别设置为 FULL,当我尝试使用域帐户登录时,此消息显示在日志文件中。

SELECT * FROM `properties` WHERE (((`properties`.`resource_id` IS NULL AND `properties`.`user_id` IS NULL)) AND (`properties`.`prop_key` = 'sonar.allowUsersToSignUp')) LIMIT 1

Ldap 插件 1.4

有人可以帮帮我吗?

我正在使用 SonarQube 3.7.3 并附加了我的配置,它可以正常工作。希望有用。

# General Configuration
sonar.security.realm=LDAP
sonar.authenticator.createUsers=true
sonar.security.savePassword=true
sonar.security.updateUserAttributes=true
ldap.url=ldap://...
ldap.bindDn=user
ldap.bindPassword=password

# User Configuration
ldap.user.baseDn=ou=People,dc=company,dc=local
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail