简体   繁体   中英

Mosquitto broker not able to use access control

Here are my contents of acl_file

user client1
pattern read client2_topic

user client2
pattern write client2_topic

user client3
topic hello

I tried publishing message to topic test from client3 and he is publishing it.

I don't want any access to topics other than client2_topic and hello .

You should change pattern to topic . pattern applies to all clients and you would expect to see either %c or %u in the pattern string, otherwise there is no point to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM