emqx/emqx-auth-mongo

Conf file attempted to set unknown variable: auth.mongo.acl_nomatch

vndn-developers opened this issue · 3 comments

I enable mongo authentication plugin and read mqtt_acl collection. After creating a rule, every topics are publish to all subscribers - that means the acl has no effect.
I try to add auth.mongo.acl_nomatch but got the error
Please help me check this error !
"Conf file attempted to set unknown variable: auth.mongo.acl_nomatch"

@vndn-developers
auth.mongo.acl_nomatch is unavailable, please configure 'mqtt.acl_nomatch' in emq.conf

mqtt.acl_nomatch = deny

It seems that the mqtt_acl collection has no effect.
After authenticating by username, password with mqtt_user collection, the subscriber still receives the topics published from anywhere. Even though the authentication username is not in mqtt_acl, this subscriber username still receive all topics.
Could you please help me check?
Thank you.

Could you help, please?
I clone source code from the same git repository (http://emqtt.io/docs/v2/install.html#installing-from-source) but I encounter this issue on MAC OS only and it works as expected on Ubuntu server.