Password Manager Pro issues
System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine
During the configuration of your Password Manager Pro credential entry, make sure that the URL of your server contains https:// and not http://. You absolutely need an https:// at the beginning of the address to communicate properly with the server.
When you try to connect on a remote computer or get the credential list, a window appears with an empty token field and the username and workstation field greyed out
The host name configured in your API user in Password Manager Pro is not the same that you have configured in Remote Desktop Manager in File – My account settings – Password Manager Pro. For more information on the configuration, see Configure Password Manager Pro in Remote Desktop Manager macOS.
Api key received is not associated to any user. Authentication failed
Edit your API user in Password Manager Pro and generate a new Authentication Token, save your API user and save this new token in Remote Desktop Manager in File – My account settings – Password Manager Pro.
User is not allowed to access from this host
During the creation of an API User in Password Manager Pro, a Host (Computer name) is necessary to create the user. In Password Manager Pro it may be registered using the Fully Qualified Domain Name (FQDN) of the computer. In Remote Desktop Manager on the other hand, you must set it exactly the same as the %COMPUTERNAME% environment variable.
Another reason for this error we have seen is that the DNS name of the server was specified, but it would work perfectly fine if you were using the IP address instead. Please test it with the procedure described below.
Testing procedure with PowerShell
Here is a script that you can use to test your access from a client workstation. Save the following code in a file called PMPTest.ps1. The script calls the same REST API as Remote Desktop Manager, so it shows whether the workstation can reach the server and whether the token is accepted. Run it in Windows PowerShell 5.1, since the certificate bypass it uses is not supported in PowerShell 7.
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,Position=1)]
[string]$PMPServer,
[Parameter(Mandatory=$True,Position=2)]
[string]$AuthToken
)
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy: ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
cls
$connect = "https://" + $PMPServer + ":7272/restapi/json/v1/resources?AUTHTOKEN=$AuthToken"
$result = Invoke-WebRequest -Uri $connect
$form = $result.Content
$content = ConvertFrom-Json $form
$status = $content.operation.result.status
if ($status -eq "Success") {
$content.operation.Details
}
if ($status -eq "Failed") {
$status
$content.operation.result.Message
}
PauseFrom within Powershell, type the following:
.\PMPTest.ps1 {YOUR_PMP_SERVER} {YOUR_PMP_TOKEN}
Test with both the DNS name of the server and the IP address and observe the results.
Last updated
Was this helpful?