[rabbitmq-discuss] MQTT login failed for "guest" access_refused even after mentioning loopback_users
Ceri Storey
ceri at lshift.net
Fri Jul 18 10:34:27 BST 2014
(18/07/14 10:17), Ankur5 C wrote:
> Thanks , I am going to use a new user. Is it the right way . This time
> I am getting Bad user name or password (4). How to set up a new user ?
>
> [{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, <<"cto">>},*
> * {default_pass, <<"cto">>},*
> ...
Just to throw in my 2c, the default_user/default_pass are only applied
in the broker when it starts up with an empty database, so when it first
starts or after a rabbitmqctl reset. So, whilst you could do that,
Michael's suggestion of using rabbitmqctl add_user is virtually always
what you want.
Hope that's useful.
>
> Thanks and Regards,
> Ankur Chakraborty
>
>
>
>
> From: Michael Klishin <mklishin at gopivotal.com>
> To: Ankur5 C <ankur5.c at tcs.com>
> Cc: Legacy list about RabbitMQ
> <rabbitmq-discuss at lists.rabbitmq.com>
> Date: 18-07-2014 14:33
> Subject: Re: [rabbitmq-discuss] MQTT login failed for "guest"
> access_refused even after mentioning loopback_users
> ------------------------------------------------------------------------
>
>
>
> On 18 July 2014 at 13:00:44, Ankur5 C (ankur5.c at tcs.com) wrote:
> > > {loopback_users, []}
>
> loopback_users is a RabbitMQ server config setting, not the MQTT plugin.
>
> The example on http://www.rabbitmq.com/access-control.htmlincludes it in
> the "rabbit" app config.
>
> It is also highly recommended to use a new user with non-obvious
> credentials
> rather than enabling remote access for "guest".
> --
> MK
>
> Staff Software Engineer, Pivotal/RabbitMQ
>
> =====-----=====-----=====
> 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
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
> please subscribe to the new list!
>
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140718/22c65bae/attachment.html>
More information about the rabbitmq-discuss
mailing list