vncserver: extract DisableVncAuth()

KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent dc1850f1e7
commit d6fa4b55d7

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

Loading…
Cancel
Save