From d6fa4b55d7f4225436fcc07779e8d6e09d0a102f Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sun, 1 Aug 2021 21:11:19 +1200 Subject: [PATCH] vncserver: extract DisableVncAuth() --- unix/vncserver | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"); +}