After installing Symantec Protection Engine (SPE) you receive the following error when attempting to add the new SPE to the SPE Console.
Failed to add the following server(s):
<SERVER_IP_HOSTNAME>. Reason: Unauthorized
Reviewing the CmafUI.log on the SPE console shows entries similar to the following:
[Main UI Thread] ERROR Symantec.Cmaf.Security.AuthManager - Exception is caught while adding server: <SERVER_IP_HOSTNAME>. Reason: Unauthorized
[Main UI Thread] ERROR Symantec.Cmaf.UI.CustomControls.AddServerPane - Failed to add scanner name: <SERVER_IP_HOSTNAME>. Reason: Unauthorized
Reviewing the SPE_REST_API.log on the SPE shows entries similar to the following:
[https-jsse-nio-8008-exec-6] INFO spe.authentication.util.CustomPasswordEncoderForBasicAuthentication:53 - Password matches: false
[https-jsse-nio-8008-exec-6] DEBUG spe.authentication.security.JwtAuthenticationEntryPoint:50 - JwtAuthenticationEntryPoint::commence exception occurred: org.springframework.security.authentication.BadCredentialsException: Bad credentials
SPE 9.x
SPE Console 9.x
The administrator password entered in the SPE Console does not match the SPE RestAPI administrator password.
From the Command Line Interface (CLI) of the SPE, run one of the following commands:
XMLModifier.exe -w administrator '<PASSWORD_HERE>' <SPE_Install_Directory>\RestAPI\restconfiguration.xml
xmlmodifier -w administrator '<PASSWORD_HERE>' <SPE_Install_Directory>/RestAPI/restconfiguration.xml