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
This commit is contained in:
parent
d790beb7bd
commit
cf27a3ae8d
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user