From 2b5f46f58343c172060c5d3a4077019ab8fe8ea1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 2 May 2011 19:18:16 +0000 Subject: [PATCH] Lengthen the password a tad git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9466 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 43d21a821..c305ad605 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -627,7 +627,7 @@ sub build_xmldesc { $xtree{devices}->{graphics}->{type}='vnc'; } $xtree{devices}->{graphics}->{autoport}='yes'; - $xtree{devices}->{graphics}->{password}=genpassword(10); + $xtree{devices}->{graphics}->{password}=genpassword(16); $xtree{devices}->{sound}->{model}='ac97'; $xtree{devices}->{console}->{type}='pty'; @@ -673,7 +673,7 @@ sub getcons { $sconsparms->{node}->[0]->{baudrate}=[$serialspeed]; return (0,$sconsparms); } elsif ($type eq "vid") { - my $tpasswd=genpassword(10); + my $tpasswd=genpassword(16); my $validto=POSIX::strftime("%Y-%m-%dT%H:%M:%S",gmtime(time()+300)); $dom->update_device(""); $consdata->{password}=$tpasswd;