User unable to login to SonarQube UI

SonarQube - Community Edition Version 8.9.9
SonarQube - Community Edition Version 9.9.4

We have two environments with the versions given above. On both the environments we face the same issue.

We use AD authentication for our users. There is this one particular user unable to login to SonarQube. Nobody else has any issues logging in except this user. The error we see in the web.log is given below. I’ve modified certain environment specific details for the sake of security.

DEBUG web[AY5SCx4GD8P4WVs5AJxv][o.s.a.l.LdapUsersProvider] Requesting details for user johndoe
DEBUG web[AY5SCx4GD8P4WVs5AJxv][o.s.a.l.LdapSearch] Search: LdapSearch{baseDn=DC=abc,DC=xyz,DC=org, scope=subtree, request=(&(samaccountname={0})(objectclass=person)), parameters=[johndoe], attributes=[mail, name]}
DEBUG web[AY5SCx4GD8P4WVs5AJxv][o.s.a.l.LdapSearch] Search: LdapSearch{baseDn=DC=abc,DC=xyz,DC=org, scope=subtree, request=(&(samaccountname={0})(objectclass=person)), parameters=[johndoe], attributes=null}
DEBUG web[AY5SCx4GD8P4WVs5AJxv][o.s.a.l.LdapAuthenticator] User johndoe not found
DEBUG web[AY5SCx4GD8P4WVs5AJxv][auth.event] login failure [cause|Realm returned authenticate=false][method|FORM][provider|REALM|LDAP][IP|11.11.11.11|][login|johndoe]
DEBUG web [org.apache.http.wire] http-outgoing-3 >> “{“from”:0,“size”:50,“query”:{“bool”:{“must”:[{“multi_match”:{“query”:“johndoe”,“fields”:[“email^1.0”,“email.user_search_grams_analyzer^1.0”,“login^1.0”,“login.user_search_grams_analyzer^1.0”,“name^1.0”,“name.user_search_grams_analyzer^1.0”],“type”:“best_fields”,“operator”:“AND”,“slop”:0,“prefix_length”:0,“max_expansions”:50,“zero_terms_query”:“NONE”,“auto_generate_synonyms_phrase_query”:true,“fuzzy_transpositions”:true,“boost”:1.0}}],“filter”:[{“bool”:{“must”:[{“term”:{“active”:{“value”:true,“boost”:1.0}}}],“adjust_pure_negative”:true,“boost”:1.0}}],“adjust_pure_negative”:true,“boost”:1.0}},“sort”:[{“name”:{“order”:“asc”}}]}”

What is going on? Any help is appreciated.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

8.9.9 → 9.9.4 → 10.4 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your issue persists after upgrade, please come back to us.

Hi Colin,

Thanks for your response. I forgot to mention one more thing. We have two environments with SonarQube running on them. One is on 8.9.9 and another one on 9.9.4. The 9.9.4 is not live yet but we’re still facing the same issue there as well.

Thanks.
Aishwaryaa.

Thanks for clarifying.

Please note that there is no specific SonarQube logic here, or any of the values supplied for LDAP integration – the values of ldap.user.* are simply transferred over to a Java implementation of ldapsearch. It should, in fact, be possible for you yourself to plug your LDAP configuration values into ldapsearch and see if your johndoe user is found.