jpmens / mosquitto-auth-plug

Authentication plugin for Mosquitto with multiple back-ends (MySQL, Redis, CDB, SQLite3)
Other
825 stars 496 forks source link

Mysql ACL using c% does not seem to work #360

Closed southbot closed 5 years ago

southbot commented 6 years ago

I set up a test user with the following in the ACL table: other/%c/test I then connect as that user with ClientId set to "ten". I publish to this topic: other/ten/test In the log I get... mosquitto_auth_acl_check(..., client id not available, mosx15, other/ten/test, MOSQ_ACL_WRITE) mysql: topic_matches(test/#, test/#) == 0 mysql: topic_matches(Status/#, Status/#) == 0 mysql: topic_matches(other/client id not available/test, other/%c/test) == 0 aclcheck(mosx15, other/ten/test, 2) AUTHORIZED=0 by none Is there something I am supposed to do in the conf file to use this feature?

jpmens commented 6 years ago

I cannot reproduce this. Please provide exact test data and subscriptions/publishes. (Also, please place code and examples in Github markdown fences so that it is correctly formatted)