[Spacewalk-list] Spacewalk Proxy 1.6 and non-self signed certificates
Miroslav Suchý
msuchy at redhat.com
Mon Jan 30 10:02:35 UTC 2012
On 01/16/2012 04:39 PM, Scott Worthington wrote:
> In /usr/share/perl5/vendor_perl/Sniglets/Servers.pm we have on lines:
>
> 150 throw "User '" . $pxt->user->id . "' attempted to access
> proxy interface without permission."
> 151 unless
> $pxt->user->org->has_channel_family_entitlement('rhn-proxy');
Yes, indeed.
Can you test this patch for me?:
diff --git a/web/modules/sniglets/Sniglets/Servers.pm
b/web/modules/sniglets/Sniglets/Servers.pm
index 3c9f7c7..548d3e2 100644
--- a/web/modules/sniglets/Sniglets/Servers.pm
+++ b/web/modules/sniglets/Sniglets/Servers.pm
@@ -23,6 +23,7 @@ use File::Spec;
use Data::Dumper;
use Date::Parse;
+use PXT::Config ();
use PXT::Utils;
use PXT::HTML;
@@ -148,7 +149,7 @@ sub proxy_entitlement_form {
my $block = $params{__block__};
throw "User '" . $pxt->user->id . "' attempted to access proxy
interface without permission."
- unless $pxt->user->org->has_channel_family_entitlement('rhn-proxy');
+ unless
($pxt->user->org->has_channel_family_entitlement('rhn-proxy') or not
PXT::Config->get('subscribe_proxy_channel'))
my $sid = $pxt->param('sid');
throw "no server id!" unless $sid;
--
Miroslav Suchy
Red Hat Satellite Engineering
More information about the Spacewalk-list
mailing list