Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-15 Thread Stefano Costa
Il 08/09/2013 23:25, Roger Light ha scritto: you scrap the leading / it will work now. Generally I'd recommend not ...ok I can confirm this setup without leading slash is now working on existing version: (1) mosquitto.conf: mostly default, with line added: acl_file /etc/mosquitto/mosqui

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-09 Thread Stefano Costa
On 09/08/2013 11:25 PM, Roger Light wrote: Hi Stefano, pattern write /clid/%c/data Yes, ok I agree this doesn't work. I'll fix it for 1.2.1, which should be next week. Ok thanks Roger! Sometimes I do have time to dig into code... not always. The problem was around ACL with a leading / not

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Roger Light
Hi Stefano, > pattern write /clid/%c/data Yes, ok I agree this doesn't work. I'll fix it for 1.2.1, which should be next week. The problem was around ACL with a leading / not matching properly. If you scrap the leading / it will work now. Generally I'd recommend not starting a topic with a / unl

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Stefano Costa
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 s

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Stefano Costa
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 onl

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Karl P
On 09/08/2013 02:23 PM, Stefano Costa wrote: Sure I'm studying this, trying also to understand if I can achieve my other goal of having each user "confined" under a specific topics tree (see my other post today). Or better: my colleagues will, I'm not (any more) so good at building real C/C++

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Stefano Costa
Il 08/09/2013 11:21, Roger Light ha scritto: Hi Stefano, (a) only "pattern /clid/%c/data" I suspect the problem that you're seeing here is that if this is your only acl, then other clients won't be able to see that topic. This means your mosquitto_sub instance won't receive the messages, e

Re: [Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Roger Light
Hi Stefano, > (a) only "pattern /clid/%c/data" I suspect the problem that you're seeing here is that if this is your only acl, then other clients won't be able to see that topic. This means your mosquitto_sub instance won't receive the messages, even though it is subscribed to #. You could try

[Mosquitto-users] mosquitto.conf and "pattern" vs "topic" (ACL)

2013-09-08 Thread Stefano Costa
I was playing with both mentioned options. I'm not using any auth here, plain pub / sub. Mosquitto version 1.2 My simple setup is: (1) mosquitto.conf: mostly default, with added "acl_file /etc/mosquitto/mosquitto_acl.conf" (2) mosquitto_acl.conf content (a) only "pattern /clid/%c/data" (