Sonarqube 9.9.1 LTS LDAP configuration doesn't work

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonar 9.9.1 LTS
  • how is SonarQube deployed: zip, Docker, Helm
    ZIP
  • what are you trying to achieve
    Configure LDAP
  • what have you tried so far to achieve this
    Connection can be make only problems with userid password

Config:

# LDAP configuration
# General Configuration
sonar.security.realm=LDAP
ldap.url=ldap://myserver.mycompany.com

Doesn't work with password
**ldap.bindDn=my_bind_dn**
**ldap.bindPassword=my_bind_password**
  **strong text**



# 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}))

ERROR
Test LDAP connection: FAIL

Manual test on linux with ldapsearch work with passoword
ldapsearch -H ldaps://name -D uid=**,cn=users,cn=accounts,dc=ipa,dc=global,dc=*,dc=com -W -vvv

Hopefully you have a solution
Thanks in advance
Velasco

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

We’re not LDAP experts. I do notice, however, the difference between

and

 
HTH,
Ann

Hi Ann,

Thanks but that is on linux commandline with ldapsearch -H line to test the connection. I will ask LDAP expert in our company.

1 Like