Update: the message is published ONLY if I use the same user/pwd both on
pub and sub, like this (same ACL as below):
mosquitto_sub -v -h localhost -u "pippo" -P "plauto" -t "#"
and
mosquitto_pub -h localhost -i "pippo" -u "pippo" -P "plauto"\
-t "/clid/pippo/data" -m "99"
...but I'm pretty sure this is not the intended behaviour.
Il 08/09/2013 16:42, Karl P ha scritto:
On 09/08/2013 02:23 PM, Stefano Costa wrote:
------------
# Allow local (anonymous) users full access
topic #
# This is required so that bridge status notifications work
pattern write $SYS/broker/connection/%c/state
# secure clients from the net can only access their own topics.
pattern +/%u/#
------------
...well I'm sure I'm doing something wrong but can't make this work! Any
hint?
I'm trying this simple setup for ACL file:
topic #
user pippo
pattern write /clid/%c/data
(with variants: %u instead of %c, "topic read #", without "user pippo"
etc etc) and giving client commands like:
mosquitto_sub -v -h localhost --username "super" --pw "super" -t "#"
mosquitto_sub -v -h localhost -t "#"
mosquitto_sub -v -h localhost -i "pippo" -t "#"
and
mosquitto_pub -h localhost -i "pippo" -u "pippo" -P "plauto"\
-t "/clid/pippo/data" -m "99"
...but never have the message published! I'm also looking at log,
nothing strange... commenting the ACL file content of course messages
start flowing.
--
Stefano Costa, R&D Manager
M +39 335 6565749
Skype stefanocosta.bluewind
Twitter @stefanobluewind
http://www.bluewind.it
--
Mailing list: https://launchpad.net/~mosquitto-users
Post to : mosquitto-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mosquitto-users
More help : https://help.launchpad.net/ListHelp