@@ -303,27 +303,28 @@ that make sure remote clients can successfully connect:
303
303
304
304
* Create one or more new user(s), grant them full permissions to the virtual host used by the MQTT plugin and make clients
305
305
that connect from remote hosts use those credentials. This is the recommended option.
306
- * Set ` default_user ` and ` default_pass ` via [ plugin configuration ] ( #config ) to a non-` guest ` user who has the
306
+ * Set ` anonymous_login_user ` and ` anonymous_login_pass ` to a non-` guest ` user who has the
307
307
[ appropriate permissions] ( ./access-control ) .
308
308
309
309
310
310
### Anonymous Connections {#anonymous-connections}
311
311
312
- MQTT supports optional authentication (clients may provide no credentials) but RabbitMQ
313
- does not. Therefore a default set of credentials is used for anonymous connections.
312
+ MQTT supports optional authentication (clients may provide no credentials).
313
+ Therefore a default set of credentials is used for anonymous connections.
314
314
315
- The ` mqtt.default_user ` and ` mqtt.default_pass ` configuration keys are used to specify
315
+ The ` anonymous_login_user ` and ` anonymous_login_pass ` configuration keys are used to specify
316
316
the credentials:
317
317
318
318
``` ini
319
- mqtt.default_user = some-user
320
- mqtt.default_pass = s3kRe7
319
+ anonymous_login_user = some-user
320
+ anonymous_login_pass = s3kRe7
321
321
```
322
322
323
323
It is possible to disable anonymous connections:
324
324
325
325
``` ini
326
326
mqtt.allow_anonymous = false
327
+ anonymous_login_user = none
327
328
```
328
329
329
330
If the ` mqtt.allow_anonymous ` key is set to ` false ` then clients ** must** provide credentials.
@@ -344,8 +345,6 @@ mqtt.listeners.tcp.default = 1883
344
345
# anonymous connections, if allowed, will use the default
345
346
# credentials specified here
346
347
mqtt.allow_anonymous = true
347
- mqtt.default_user = guest
348
- mqtt.default_pass = guest
349
348
350
349
mqtt.vhost = /
351
350
mqtt.exchange = amq.topic
@@ -774,8 +773,6 @@ With the second one, there is a limit of 2 GB per vhost. Both are node-local
774
773
To configure the store, use <code >rabbitmq_mqtt.retained_message_store</code > configuration key:
775
774
776
775
``` ini
777
- mqtt.default_user = guest
778
- mqtt.default_pass = guest
779
776
mqtt.allow_anonymous = true
780
777
mqtt.vhost = /
781
778
mqtt.exchange = amq.topic
0 commit comments