Unable to add AD user with special character '

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    – SonarQube 7.9.1
  • what are you trying to achieve
    – we have a user in our AD who has an apostrophe in their username, so this user is not being created due to the apostrophe.
  • what have you tried so far to achieve this
    – only option is to create the user locally

We are inquiring whether an upgrade to the latest SonarQube version, which supports SAML, will handle/fix this issue?

Thanks

Hi @b.weekes, and welcome on this community forum !

I’ve made some test on SonarQube 8.4, it’s indeed possible to authenticate with a user that have an apostrophe in his username, using SAML authentication.
FYI, my SAML identity provider was Keycloak 7.0.

However, there should be no difference when using SonarQube 7.9 and the SAML authentication plugin.

Which authentication plugin are you using ?

Hello @julienlancelot, thank you for your response!

We have not configured SAML due to the limitations that requests are not signed and encrypted responses are not supported. Looks like that is still a limitation with the update to 8.4 as well.

For the special character in a user name, is that only fixed through SAML or will just syncing to a directory also work?

Thanks

Hi,

It should work for any kind of authentication and any kind of user.
The issue you’re encountering is not on SonarQube side, but it’s probably on the identity provider you’re currently using.

Regards