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/trunk@17004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-07-19 13:26:46 +00:00
parent db0dd06b3f
commit cd85ac13c1

View File

@ -75,7 +75,7 @@ sub validate {
# check to see if peerhost is trusted
foreach $rule (@sortedpolicies) {
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;
}