Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 9.7
- what are you trying to achieve ? We are trying use ldaps for authentication
- what have you tried so far to achieve this ? We have ldaps configured and working for most users. some users are not able to log in.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
We have gotten complaints that a few users are not able to log into sonarqube. I have enabled debug logging to try and find the issue and I noticed this in the logs when the user tried to log in :
Caused by: javax.naming.CommunicationException: simple bind failed: Domain.com:636
at java.naming/com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:96)
at java.naming/com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:151)
at java.naming/com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreReferrals(AbstractLdapNamingEnumeration.java:325)
at java.naming/com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreImpl(AbstractLdapNamingEnumeration.java:227)
... 139 common frames omitted
Caused by: javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching Domain.com found.
In the sonarqube config I have an fqdn of a host specified and not the root of the domain it self. For the ldap url I have ldap.url=ldaps://hostname.domain.com:636 specified. I am not sure why it is complaining about the root of the domain. Most users are able to log in without issue it is just a few for now. Not sure if I am missing anything. Any help would be appreciated.