vncserver: refactor
This commit is contained in:
@@ -38,7 +38,7 @@ use Time::HiRes qw (sleep);
|
|||||||
|
|
||||||
&PrepareDefaultsForPassingToXvnc();
|
&PrepareDefaultsForPassingToXvnc();
|
||||||
|
|
||||||
&DisableVncAuth();
|
&DisableLegacyVncAuth();
|
||||||
&EnsureAtLeastOneKasmUserExists();
|
&EnsureAtLeastOneKasmUserExists();
|
||||||
|
|
||||||
&SetupXauthorityFile();
|
&SetupXauthorityFile();
|
||||||
@@ -769,7 +769,7 @@ sub LoadSystemThenUserThenMandatoryConfigs {
|
|||||||
LoadConfig($vncSystemConfigMandatoryFile, 1);
|
LoadConfig($vncSystemConfigMandatoryFile, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub DisableVncAuth() {
|
sub DisableLegacyVncAuth() {
|
||||||
# Disable vnc auth, kasmvnc uses https basic auth
|
# Disable vnc auth, kasmvnc uses https basic auth
|
||||||
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
|
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user