From cf27a3ae8db03e08b49817bc3ccf311a3ec9edd0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 12 May 2011 14:06:14 +0000 Subject: [PATCH] Shorten validity of temporary video tokens for KVM git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index be9c1d4d0..1bce25dff 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -679,7 +679,7 @@ sub getcons { my ($graphicsnode) = $parseddom->findnodes("//graphics"); my $tpasswd=genpassword(16); - my $validto=POSIX::strftime("%Y-%m-%dT%H:%M:%S",gmtime(time()+300)); + my $validto=POSIX::strftime("%Y-%m-%dT%H:%M:%S",gmtime(time()+60)); $graphicsnode->setAttribute("passwd",$tpasswd); $graphicsnode->setAttribute("passwdValidTo",$validto); $dom->update_device($graphicsnode->toString());