Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Can SUB without authentication with allow_anonymous=false

On 20/03/2015 14:22, Roger Light wrote:
Hi Stefano,

Are you by any chance setting the "use_identity_as_username" option to true?

Oh yes. My simple conf for this test is here.

And by the way (didn't look at mosquitto.conf for months and can't remember...) is there any trick for having a port with anonymous access enabled (bind to localhost) and another with anonymous disabled?


# (start) mosquitto.conf
#
# Testing listeners and permissions
#
# ACL for everything
acl_file /etc/mosquitto/mosquitto.acl
allow_anonymous false
#
#
# Listener for local anonymous connections
listener 1883 localhost
#
#
# Listener for remote authenticated connections
listener 51883
#password_file /etc/mosquitto/mosquitto.pwd
psk_hint bluewind
use_identity_as_username true
psk_file /etc/mosquitto/mosquitto.psk
#
# (end) mosquitto.conf



Back to the top