Sonarqube Ldap exception, unable to retrieve details for user

0

I am trying to configure the LDAP plugin for SonarQube 7.9.2.30863, but I am getting this error sonarqube_web.log :

LdapException: Unable to retrieve details for user in

Caused by: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0907C2, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580 ]

I’ve added the following configuration in sonar.properties:

sonar.security.realm=LDAP
ldap.url=ldap://companyUrl:1234
ldap.bindDn=admin@companyDomain
ldap.bindPassword=password

ldap.user.baseDn=dc=companyName,dc=DOMAIN
ldap.user.request=(&(sAMAccountName={0}))
ldap.user.realNameAttribute=name
ldap.user.emailAttribute=mail

ldap.group.request=(objectClass=group)
ldap.group.idAttribute=cn

Hi,

Welcome to the community!

This is really a question of your LDAP configuration. The error message tells me that’s what’s wrong. I would try to debug the LDAP connection outside of SonarQube first, e.g. with a 3rd-party LDAP client (Google can help you there) and once you’re sure the binding information is correct, then plug it into your SonarQube instance.

 
HTH,
Ann

Thank you, I will try it.