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.7@17002 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-07-19 13:24:31 +00:00
parent ed88f05e47
commit ac3c7fe28c

View File

@ -1991,7 +1991,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;
}