SonarQube 4.4 LDAP Plugin 1.4+AD

我怕爱的太早我们不能终老 提交于 2019-12-11 20:23:33

问题


I'm triying to make sonar work with the LDAP+AD authentication but I'm having a lot of trouble geting it to work. I'm either getting the "org.sonar.api.utils.SonarException: Unable to open LDAP connection" or the "Unable to retrieve details for user xxx.xxx". Here's my current configuration:

# Configuration
sonar.security.realm=LDAP
sonar.security.savePassword=true
ldap.url=ldap://tpr.mycompany:3268

 # User Configuration
ldap.user.baseDn=OU=Users,OU=MYCOMPANY,DC=tpr,DC=mycompany,tpr.mycompany
ldap.user.request=(&(objectClass=inetOrgPerson)(uid={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail

ldap.bindDn=CN=my_account_name,OU=Users,OU=mycompany
ldap.bindPassword=MyPassword

# Group Configuration
ldap.group.baseDn=OU=Users,OU=MYCOMPANY,DC=tpr,DC=mycompany,tpr.mycompany
ldap.group.request=(&(objectClass=posixGroup)(memberUid={uid}))

and here's the path as shown by AD Explorer:

CN=my_account_name,OU=Users,OU=MYCOMPANY,DC=tpr,DC=mycompany,tpr.mycompany

回答1:


I had the same issue. If you want to connect to a Active Directory then you need these additional properties:

ldap.user.loginAttribute=sAMAccountName
ldap.user.objectClass=user


来源:https://stackoverflow.com/questions/27925394/sonarqube-4-4-ldap-plugin-1-4ad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!