Authentication 声纳和LDAP。无法登录

Authentication 声纳和LDAP。无法登录,authentication,ldap,sonarqube,Authentication,Ldap,Sonarqube,我正在尝试将sonar配置为使用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

我正在尝试将sonar配置为使用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 log level设置为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

谢谢你,埃迪。有了你的配置样本,我意识到了我的错误。baseDN是错的Joao如果答案对你有利。请你记下正确答案好吗?