Fix problem where name resolution was used instead of certificate subject to identify 'trusted' peer

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-07-19 13:25:51 +00:00
parent bc96478730
commit f9533a6843

View File

@ -72,7 +72,7 @@ sub validate {
# check to see if peerhost is trusted
foreach $rule (@$policies) {
if (($rule->{name} and (($rule->{name} eq $peerhost) || ($rule->{name} eq $peerhostorg))) && ($rule->{rule}=~ /trusted/i)) {
if (($rule->{name} and $rule->{name} eq $peername) && ($rule->{rule}=~ /trusted/i)) {
$peerstatus="Trusted";
last;
}