mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Merge pull request #7368 from peterwywong/kvm2
Reduce the VNC password from 20 characters to 8
This commit is contained in:
commit
0cc33e25c4
@ -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";
|
||||
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user