add CRYPTMETHOD to script

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2010-06-03 14:27:54 +00:00
parent 2d5c1172ee
commit 702e072547

View File

@ -230,14 +230,18 @@ sub makescript {
push @{$rsp->{data}}, "Unable to open passwd table.";
xCAT::MsgUtils->message("E", $rsp, $callback);
}
if ($passwdtab) {
my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password');
if ($et and defined ($et->{'password'})) {
push @scriptd, "ROOTPW=".$et->{'password'}."\n";
push @scriptd, "export ROOTPW\n";
}
}
if ($passwdtab) {
my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password','cryptmethod');
if ($et and defined ($et->{'password'})) {
push @scriptd, "ROOTPW=".$et->{'password'}."\n";
push @scriptd, "export ROOTPW\n";
}
if ($et and defined ($et->{'cryptmethod'})) {
push @scriptd, "CRYPTMETHOD=".$et->{'cryptmethod'}."\n";
push @scriptd, "export CRYPTMETHOD\n";
}
}
}
if (!$nodesetstate) { $nodesetstate=getnodesetstate($node);}