Problem with API access through API Explorer

  • 29 August 2022
  • 4 replies

Badge +1

Hello community,

We’ve been trying to retrieve a QSDK token in Swagger API Explorer to develop some custom tools and we always get the below error even when we try to log in with csadmin (and yes the password is converted to Base64).

Are there any Advanced\Additional Settings that need to be added to the Web Server object in order to access the web service? Thanks for your help!

"errLogMessage": "Username or password is incorrect",
"errorCode": 1117

Best answer by Mike Struening RETIRED 29 August 2022, 20:50

View original

4 replies

Userlevel 7
Badge +23

@JayBR , thanks for the post, and welcome to our community!

I was able to find 2 incidents with this error……and only 1 was actually solved.

Here’s the case resolution (copied and pasted so ), which I hope applies to you!

Note, I replaced the password the customer provided but the effect is clear).

We found the issue. Customer was using the base64 password encoded by the commandline centOS.


Commvault API requires base64 encoded password hash. Recommended customer use online tool ( which generates the correct one,  but the command line at centOS does not. The difference is only one character at the end.


Customer provided example:


Example password: "<password removed>"

online tool's encoded: U3R1cGlkQ3VzdG9tZXI2NjY=

centOS encoded: U3R1cGlkQ3VzdG9tZXI2NjYK

Userlevel 7
Badge +19

@JayBR no need for an additional setting what so ever. I assume you remove the {{ }} brackets signs e.g. replace them with your username and base64 encoded password without the brackets. 

Badge +1

@Mike Struening , thanks for your answer, it turns out it was exactly that. The Base64 hash encoded password was generated by a command line tool and some characters were missing. We’re good to go. Best regards!

Userlevel 7
Badge +23

Happy to help!!!