Sonarqube won’t connect to LDAP within our environment. We have configured the config file based on the documentation as it is presented below.
We are using: SonarQube 10.6.0.92116
Zip version.
Also in the logs we are only seeing:
INFO o.s.p.l.LdapContextFactory Test LDAP connection: OK
We are not seeing the event of:
INFO org.sonar.INFO Security realm: LDAP …
Not sure if that is indication of anything.
General Configuration
sonar.security.realm=LDAP
ldap.url=ldap://xxx.xxx.xxx
ldap.bindDn=CN=SVC SonarQube,OU=Service Accounts,OU=SonarQube,OU=IT Security,OU=Enterprise Services,DC=Org,DC=ad,DC=local
ldap.bindPassword=xxxxxxxxx
ldap.StartTLS=true
User Configuration
ldap.user.baseDn=DC= Org,DC=ad,DC=local
ldap.user.request=(&(objectClass=inetOrgPerson)(uid={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail
Group Configuration
ldap.group.baseDn=OU=groups,OU=SonarQube,OU=IT Security,OU=Enterprise Services,DC=Org,DC=ad,DC=local
ldap.group.request=(&(objectClass=group)(member={dn}))
ldap.group.idAttribute=sAMAccountName