-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:
parent
8ad1e5c372
commit
4a043a683e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user