diff --git a/unix/vncserver b/unix/vncserver index be87388..224b6c2 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -96,8 +96,7 @@ my %config; # create a VNC password if they don't already have one. # -# Disable vnc auth, kasmvnc uses https basic auth -system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd"); +&DisableVncAuth(); $kasmAuthEnabled = 1; @@ -920,3 +919,8 @@ sub LoadSystemThenUserThenMandatoryConfigs { # development work that touches Xvnc itself. LoadConfig($vncSystemConfigMandatoryFile, 1); } + +sub DisableVncAuth() { + # Disable vnc auth, kasmvnc uses https basic auth + system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd"); +}