-Add server credential retrieval

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1258 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-02 19:43:11 +00:00
parent 8ad1e5c372
commit 4a043a683e

View File

@ -107,7 +107,13 @@ sub process_request
next;
}
$tfilename = "/root/.ssh/id_rsa";
} elsif (/xcat_root_cred/) {
} elsif (/xcat_server_cred/) {
unless (-r "/etc/xcat/cert/server-cred.pem") {
push @{$rsp->{'error'}},"Unable to read root's private xCAT key";
next;
}
$tfilename = "/etc/xcat/cert/server-cred.pem";
} elsif (/xcat_client_cred/ or /xcat_root_cred/) {
unless (-r "/root/.xcat/client-cred.pem") {
push @{$rsp->{'error'}},"Unable to read root's private xCAT key";
next;