Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube Enterprise Edition Version 9.9 - how is SonarQube deployed: zip, Docker, Helm
Zip - what are you trying to achieve
LDAP authenticate users in different domain with 2 controllers - what have you tried so far to achieve this
Follow SonarQube Doc to configure multiple controllers.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
If I configure each controller as below, both can authenticate users successfully:
ldap.url=ldap://server1.com:3268
ldap.bindDn=xxx
ldap.bindPassword=xxx
ldap.user.baseDn=xxx
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.realNameAttribute=cn
But when I add them together with multiple servers property as below, connection test is OK, but authenticate users fails:
ldap.servers=server1,server2
#server1
ldap.server1.url=ldap://server1.com:3268
ldap.server1.bindDn=xxx
ldap.server1.bindPassword=xxx
ldap.server1.user.baseDn=xxx
ldap.server1.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.server1.user.realNameAttribute=cn
#server2
ldap.server2.url=ldap://server1.com:3268
ldap.server2.bindDn=xxx
ldap.server2.bindPassword=xxx
ldap.server2.user.baseDn=xxx
ldap.server2.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.server2.user.realNameAttribute=cn
Could you give me some hint, where could be the problem? Thank you!
Regards,
Lu