PRIV CLOUD | CreateCredFile-Helper.ps1 fails to change provider password with error 400 Bad request
Symptom
CreateCredFile-Helper.ps1 fails to change provider password with error 400 Bad request:
There was an error finding user '<Provider-username>'. The error was: Bad Request
There was an error running the script. Error Source:; Message: Error in the flow of Resetting component AIM credentials file.
->Source:; Message: There was an error finding user '<Provider-username>'.
->Source:Microsoft.PowerShell.Commands.Utility; Message: The remote server returned an error: (400) Bad Request.
PVWA IIS logs will show associated 400 Bad Request similar to following:
<date> <timestamp> <s-IP address> GET /passwordVault/api/Users filter=componentUser&search=Prov_<provider user>&UserType=AppProvider 443 - <c-ip address> Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.6766 - 400 0 0 25
Note the 400 Bad Request for the GET request for the Provider User API call.
Environment
14.0;14.2;14.3;14.4 Privilege Cloud Credential Provider
Credential Provider Privilege Cloud
Cause
Check if there was a recent associated license issue for the CP/CCP users. In the vault italog, there may be error similar to:
ITATS936E User type ID 33 was not found.
This error message indicates that the license did not contain the appropriate data for CP/CCP provider users. Consequently, the system may have disabled these provider users.
Resolution
If the CreateCredFile-Helper is failing with this error, then contact Idira Support for assistance in manually resetting the provider user password.
On Privateark server side, Idira Support can reset the password to a known password.
On the CP/CCP provider side, run CreateCred.exe to reset the password to the known password. The command is as follows:
AIM/CP:
CreateCredFile.exe "<PathToCredFile>" Password /username <ComponentUserName> /Password <NewPassword> /DPAPIMachineProtection /EntropyFile /Hostname /IpAddress
Rename, move, or delete any previous entropy file before running this command. Ensure that a new entropy file is created after running the command.
After resetting the credfile and restarting the provider service, check the logs to confirm that it logged on successfully.