LDAP Connection Failed

Hey @vishwanihar and @shiva_sq

When connecting SonarQube to a case-insensitive LDAP setup, you should set the sonar.authenticator.downcase=true configuration in your $SONARQUBE_HOME/conf/sonar.properties file and restart your SonarQube server.

While not available through the UI, the POST api/users/update_login Web API (documentation linked in the footer of your instance) can be used to rename the logins of existing users so that duplicates aren’t made.

You can imagine a script that programmatically:

  • Pulls the list of active users from GET api/users/search
  • Extracts the username of each user object returned and checks if the username is already lowercase
  • Uses POST api/users/update_login to update offending usernames to an all-lowercase version