From f2dfb6f85f1d1e1e3ce2cef1d952c8952af65024 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: May 26 2016 15:54:07 +0000 Subject: Use empty list for non-allowed user names for loopback connection Signed-off-by: Peter Lemenkov --- diff --git a/rabbitmq-server-0004-Allow-guest-login-from-non-loopback-connections.patch b/rabbitmq-server-0004-Allow-guest-login-from-non-loopback-connections.patch new file mode 100644 index 0000000..8bf55b4 --- /dev/null +++ b/rabbitmq-server-0004-Allow-guest-login-from-non-loopback-connections.patch @@ -0,0 +1,18 @@ +From: John Eckersberg +Date: Thu, 30 Oct 2014 14:01:08 -0400 +Subject: [PATCH] Allow guest login from non-loopback connections + + +diff --git a/src/rabbit.app.src b/src/rabbit.app.src +index 572c1f6..4676e03 100644 +--- a/src/rabbit.app.src ++++ b/src/rabbit.app.src +@@ -39,7 +39,7 @@ + {default_user_tags, [administrator]}, + {default_vhost, <<"/">>}, + {default_permissions, [<<".*">>, <<".*">>, <<".*">>]}, +- {loopback_users, [<<"guest">>]}, ++ {loopback_users, []}, + {password_hashing_module, rabbit_password_hashing_sha256}, + {cluster_nodes, {[], disc}}, + {server_properties, []}, diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index 7b863c6..a8520ac 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -5,7 +5,7 @@ Name: rabbitmq-server Version: 3.6.2 -Release: 2%{?dist} +Release: 3%{?dist} License: MPLv1.1 Group: Development/Libraries Source: http://www.rabbitmq.com/releases/rabbitmq-server/v%{version}/%{name}-%{version}.tar.xz @@ -19,6 +19,7 @@ Source5: rabbitmq-server.tmpfiles Patch1: rabbitmq-server-0001-Remove-excessive-sd_notify-code.patch Patch2: rabbitmq-server-0002-Add-systemd-notification-support.patch Patch3: rabbitmq-server-0003-Revert-Distinct-exit-codes-for-CLI-utilities.patch +Patch4: rabbitmq-server-0004-Allow-guest-login-from-non-loopback-connections.patch URL: http://www.rabbitmq.com/ BuildArch: noarch BuildRequires: erlang >= %{erlang_minver}, python-simplejson, xmlto, libxslt, python, zip @@ -54,6 +55,7 @@ scalable implementation of an AMQP broker. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 # We have to remove it until common_test subpackage lands RHOS rm -f \ @@ -169,6 +171,9 @@ done %changelog +* Thu May 26 2016 Peter Lemenkov - 3.6.2-3 +- Use empty list for non-allowed user names for loopback connection + * Wed May 25 2016 Peter Lemenkov - 3.6.2-2 - Keep error codes the same with ver. 3.3.5