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
This commit is contained in:
parent
346557fb7c
commit
2b5f46f583
@ -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("<graphics type='".$consdata->{vidproto}."' passwd='$tpasswd' passwdValidTo='$validto' autoport='yes'/>");
|
||||
$consdata->{password}=$tpasswd;
|
||||
|
Loading…
Reference in New Issue
Block a user