From cd85ac13c10c4508028b5ba9c957d282c59f1d25 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 19 Jul 2013 13:26:46 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/xcatd.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/xcatd.pm b/xCAT-server/lib/perl/xCAT/xcatd.pm index 23cfc5eb3..ed76310dc 100644 --- a/xCAT-server/lib/perl/xCAT/xcatd.pm +++ b/xCAT-server/lib/perl/xCAT/xcatd.pm @@ -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; }