[rabbitmq-discuss] MQTT login failed for "guest" access_refused even after mentioning loopback_users

Ankur5 C ankur5.c at tcs.com
Fri Jul 18 09:59:12 BST 2014


Hi,

I want the default user guest to work from remote host.

My rabbitmq config file looks like :
[{rabbit,        [{tcp_listeners,    [5672]},{ssl_listeners, [5671]}, 
                        {ssl_options, 
[{cacertfile,"/etc/rabbitmq/testca/cacert.pem"},
                    {certfile,"/etc/rabbitmq/server/cert.pem"},
                    {keyfile,"/etc/rabbitmq/server/key.pem"},
                    {verify,verify_peer},
                        {fail_if_no_peer_cert,false}]}]},
 {rabbitmq_mqtt, [{default_user,     <<"guest">>},
                  {default_pass,     <<"guest">>},
                        {loopback_users, []},
                  {allow_anonymous,  true},
                  {vhost,            <<"/">>},
                  {subscription_ttl, 1800000},
                  {prefetch,         10},
                  {ssl_listeners,    [8883]},
                  {tcp_listeners,    [1883]},
                  {tcp_listen_options, [binary,
                                        {packet,    raw},
                                        {reuseaddr, true},
                                        {backlog,   128},
                                        {nodelay,   true}]}]}
].


I have mentioned the {loopback_users, []} , and even after restarting the 
rabbitmq server my mqtt client is saying Not authorized to connect and the 
logs reveal , MQTT login failed for "guest" access_refused (access must be 
from localhost).

Please suggest.

From,local host all is well.


Thanks and Regards,
Ankur Chakraborty
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140718/06007372/attachment.html>


More information about the rabbitmq-discuss mailing list