I’ve been plugging away at testing Terraform with Commvault, but I keep hitting a wall with authentication. For the sake of testing I created a user called terraform. At first, I received an error in the WebServer.log which was helpful:
Exception Message:[The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.]
Error when running terraform apply:
│ Error: User creation failed with Error: Access denied
│
│ with commvault_user.user1,
│ on main.tf line 15, in resource "commvault_user" "user1":
│ 15: resource "commvault_user" "user1" {
│
I used https://www.base64encode.org/ to convert the password to Base64 based on an article that I found in this community.
Reran terraform apply and received this error in WebServer.log:
39968 37 05/02 16:24:12 37 ### - WEBAPI-STARTED processing [POST]:[/login] request.AdditionalInfo[ ConsoleType[Unknown]]
39968 37 05/02 16:24:12 37 ### DoLogin - Processing login request for terraform
39968 37 05/02 16:24:12 37 ### FillLoginResponseWithError - errorCode: [1116], [errorString: [Username/Password are incorrect], [userName: terraform]
I tested logging into the Commcell with the terraform ID with master privileges and it works no problem using the new Base64 password.
Quite a head scratcher… I opened a support case but curious if anyone has had any luck with Terraform and 11.28.44