Login Capabilities denied to User with Space in cacID

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Enterprise Edition Version 8.9 (build 43852)
  • what are you trying to achieve
    Trying to grant Sonarqube access to a user.
    We utilize the following script
if [ -z "$1" ]; then
  echo "Usage: $0 <CAC ID>"
  echo "  Where CAC ID is in the form: DOE.JOHN.ED. J.1111111111."
  echo "  If you're on a CAC-enabled Linux system, this value should be set in the CACID environment variable."
  exit 1
htpasswd -b /var/www/jenkins-http-authuserfile "${DN}" password

which then adds the user to an authorized-user-file as such

/C=US/O=U.S. Government/OU=DoD/OU=PKI/OU=CONTRACTOR/CN=DOE.JOHN.ED. J.1111111111:$apr1$4b4SW0r/$ZLbproitFaDFxs4Szhbu90

After the addition, the user then hits our URL and we grant the permission accordingly

  • what have you tried so far to achieve this
    Manually adding the user via Administration > Security > Users along with the created password however it fails due to not allowing a space.

With the user added properly into the file which has the space when he goes to hit the url he receives the following (refer to screenshot):

Multiple Browsers have been attempted by user as well.

found Is there a workaround to allow spaces in the username? We use a reverse proxy to retrieve the login information for a user from their smartcard but since their username has a space in it sonarqube doesn't like it

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.