veeam-enterprise_manager-grafana icon indicating copy to clipboard operation
veeam-enterprise_manager-grafana copied to clipboard

base64 encoding issues for username and password

Open matt9595-matt opened this issue 11 months ago • 0 comments

Username and password entered in variables (Line 34 & 35):

veeamUsername="YOUREMUSER" veeamPassword='YOUREMPASSWORD'

and encoded in base64 with (Line 37):

veeamAuth=$(echo -ne "$veeamUsername:$veeamPassword" | base64);

can sometimes get 'wraparound' resulting in an authentication error. I fixed it by modifying line 37 like so.

veeamAuth=$(echo -ne "$veeamUsername:$veeamPassword" | base64 -w 0);

Solution Source (https://stackoverflow.com/questions/38578528/base64-encoding-new-line)

matt9595-matt avatar Mar 19 '24 17:03 matt9595-matt