Skip to content

Commit

Permalink
Merge pull request #7368 from peterwywong/kvm2
Browse files Browse the repository at this point in the history
Reduce the VNC password from 20 characters to 8
  • Loading branch information
gurevichmark committed Mar 24, 2023
2 parents 35b0148 + 1a751e3 commit 0cc33e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xCAT-server/lib/xcat/plugins/kvm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ sub build_xmldesc {
if ($confdata->{vm}->{$node}->[0]->{vidpassword}) {
$xtree{devices}->{graphics}->{password} = $confdata->{vm}->{$node}->[0]->{vidpassword};
} else {
$xtree{devices}->{graphics}->{password} = genpassword(20);
$xtree{devices}->{graphics}->{password} = genpassword(8);
}
if (defined($hypcpumodel) and $hypcpumodel eq 'ppc64') {
$xtree{devices}->{emulator}->{content} = "/usr/bin/qemu-system-ppc64";
Expand Down Expand Up @@ -1469,7 +1469,7 @@ sub makedom {
if ($confdata->{vm}->{$node}->[0]->{vidpassword}) {
$graphics->setAttribute("passwd", $confdata->{vm}->{$node}->[0]->{vidpassword});
} else {
$graphics->setAttribute("passwd", genpassword(20));
$graphics->setAttribute("passwd", genpassword(8));
}
$graphics->setAttribute("listen", '0.0.0.0');
}
Expand Down

0 comments on commit 0cc33e2

Please sign in to comment.